pub trait DebugApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn raw_header<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn raw_block<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn raw_transaction<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn raw_receipts<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<Bytes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn bad_blocks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<()>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the DebugApi
RPC API.
Required Methods§
Sourcefn raw_header<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn raw_header<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns an RLP-encoded header.
Sourcefn raw_block<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn raw_block<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTagOrHash,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns an RLP-encoded block.
Sourcefn raw_transaction<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn raw_transaction<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the EIP-2718 binary-encoded transaction.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.