pub trait IrohaMigrationAPIServer<BlockHash>: Sized + Send + Sync + 'static {
// Required method
fn needs_migration(
&self,
iroha_address: String,
at: Option<BlockHash>
) -> Result<bool>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned { ... }
}
Expand description
Server trait implementation for the IrohaMigrationAPI
RPC API.
Required Methods§
fn needs_migration( &self, iroha_address: String, at: Option<BlockHash> ) -> Result<bool>
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>where
BlockHash: Send + Sync + 'static + DeserializeOwned,
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
.