pub trait TraceApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn block_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn block_set_auth_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedSetAuthTrace>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn filter_traces<'life0, 'async_trait>(
&'life0 self,
filter: TraceFilter,
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<LocalizedTrace>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn trace_get<'life0, 'async_trait>(
&'life0 self,
hash: H256,
indices: Vec<Index>,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<LocalizedTrace>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn transaction_traces<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + 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 TraceApi
RPC API.
Required Methods§
Sourcefn block_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns all traces produced at the given block.
Sourcefn block_set_auth_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedSetAuthTrace>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_set_auth_traces<'life0, 'async_trait>(
&'life0 self,
block_number: BlockId,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedSetAuthTrace>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns all set auth traces produced at the given block.
Sourcefn filter_traces<'life0, 'async_trait>(
&'life0 self,
filter: TraceFilter,
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<LocalizedTrace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn filter_traces<'life0, 'async_trait>(
&'life0 self,
filter: TraceFilter,
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<LocalizedTrace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns all traces matching the provided filter.
fn trace_get<'life0, 'async_trait>(
&'life0 self,
hash: H256,
indices: Vec<Index>,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<LocalizedTrace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.