pub trait TraceServer: Sized + Send + Sync + 'static {
    // Required method
    fn filter<'life0, 'async_trait>(
        &'life0 self,
        filter: FilterRequest
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTrace>, ErrorObject<'static>>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the Trace RPC API.

Required Methods§

source

fn filter<'life0, 'async_trait>( &'life0 self, filter: FilterRequest ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTrace>, ErrorObject<'static>>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B, C> TraceServer for Trace<B, C>
where B: BlockT<Hash = H256> + Send + Sync + 'static, B::Header: HeaderT<Number = u32>, C: HeaderMetadata<B, Error = Error> + HeaderBackend<B> + Send + Sync + 'static,