Trait TraceApiServer

Source
pub trait TraceApiServer:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn block_traces<'life0, 'async_trait>(
        &'life0 self,
        block_number: BlockNumber,
    ) -> 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: BlockNumber,
    ) -> 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§

Source

fn block_traces<'life0, 'async_trait>( &'life0 self, block_number: BlockNumber, ) -> 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.

Source

fn block_set_auth_traces<'life0, 'async_trait>( &'life0 self, block_number: BlockNumber, ) -> 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.

Source

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.

Source

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,

Source

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,

Returns all traces produced at the given transaction.

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

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.

Implementors§