referrerpolicy=no-referrer-when-downgrade
substrate_state_trie_migration_rpc

Trait StateMigrationApiServer

Source
pub trait StateMigrationApiServer<BlockHash>:
    Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn call(
        &self,
        ext: &Extensions,
        at: Option<BlockHash>,
    ) -> RpcResult<MigrationStatusResult>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self>
       where BlockHash: Send + Sync + 'static + DeserializeOwned { ... }
}
Expand description

Server trait implementation for the StateMigrationApi RPC API.

Required Methods§

Source

fn call( &self, ext: &Extensions, at: Option<BlockHash>, ) -> RpcResult<MigrationStatusResult>

Check current migration state.

This call is performed locally without submitting any transactions. Thus executing this won’t change any state. Nonetheless it is a VERY costly call that should be only exposed to trusted peers.

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned,

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

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<C, B, BA> StateMigrationApiServer<<B as Block>::Hash> for StateMigration<C, B, BA>
where B: BlockT, C: Send + Sync + 'static + HeaderBackend<B>, BA: 'static + Backend<B>,