pub trait TxPoolServer: Sized + Send + Sync + 'static {
    // Required methods
    fn content(&self) -> RpcResult<TxPoolResult<TransactionMap<Transaction>>>;
    fn inspect(&self) -> RpcResult<TxPoolResult<TransactionMap<Summary>>>;
    fn status(&self) -> RpcResult<TxPoolResult<U256>>;

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

Server trait implementation for the TxPool RPC API.

Required Methods§

source

fn content(&self) -> RpcResult<TxPoolResult<TransactionMap<Transaction>>>

source

fn inspect(&self) -> RpcResult<TxPoolResult<TransactionMap<Summary>>>

source

fn status(&self) -> RpcResult<TxPoolResult<U256>>

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§