Trait sc_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> { ... } }
Expand description
An api for sync state RPC calls.
Required methods
fn system_gen_sync_spec(&self, raw: bool) -> Result<Value>
fn system_gen_sync_spec(&self, raw: bool) -> Result<Value>
Returns the json-serialized chainspec running the node, with a sync state.
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Implementors
impl<Block, Backend> SyncStateRpcApi for SyncStateRpcHandler<Block, Backend> where
Block: BlockT,
Backend: HeaderBackend<Block> + AuxStore + 'static,