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§
fn content(&self) -> RpcResult<TxPoolResult<TransactionMap<Transaction>>>
fn inspect(&self) -> RpcResult<TxPoolResult<TransactionMap<Summary>>>
fn status(&self) -> RpcResult<TxPoolResult<U256>>
Provided Methods§
Object Safety§
This trait is not object safe.