Trait tc_sync_state_rpc::SyncStateRpcApi[][src]

pub trait SyncStateRpcApi: Sized + Send + Sync + 'static {
    fn system_gen_sync_spec(&self, raw: bool) -> Result<Value>;

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

An api for sync state RPC calls.

Required methods

fn system_gen_sync_spec(&self, raw: bool) -> Result<Value>[src]

Returns the json-serialized chainspec running the node, with a sync state.

Loading content...

Provided methods

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

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

Loading content...

Implementors

impl<TBl, TCl> SyncStateRpcApi for SyncStateRpcHandler<TBl, TCl> where
    TBl: BlockT,
    TCl: HeaderBackend<TBl> + AuxStore + 'static, 
[src]

Loading content...