OtxPoolRpc

Trait OtxPoolRpc 

Source
pub trait OtxPoolRpc:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn submit_otx(&self, otx: OpenTransaction) -> RpcResult<H256>;
    fn query_otx_status_by_id(
        &self,
        id: H256,
    ) -> RpcResult<Option<OpenTxStatus>>;

    // Provided method
    fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}

Required Methods§

Provided Methods§

Source

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>

Create an IoDelegate, wiring rpc calls to the trait methods.

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§