referrerpolicy=no-referrer-when-downgrade
sc_sync_state_rpc

Trait SyncStateApiClient

Source
pub trait SyncStateApiClient<B>: ClientT
where B: Send + Sync + 'static + DeserializeOwned + BlockT,
{ // Provided method fn system_gen_sync_spec<'life0, 'async_trait>( &'life0 self, raw: bool, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the SyncStateApi RPC API.

Provided Methods§

Source

fn system_gen_sync_spec<'life0, 'async_trait>( &'life0 self, raw: bool, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

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

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§

Source§

impl<TypeJsonRpseeInteral, B> SyncStateApiClient<B> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, B: Send + Sync + 'static + DeserializeOwned + BlockT,