moonbeam_rpc_trace

Trait TraceServer

Source
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.

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§

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,