Trait Msg

Source
pub trait Msg:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create_client<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgCreateClient>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_client<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgUpdateClient>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upgrade_client<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgUpgradeClient>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpgradeClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_misbehaviour<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgSubmitMisbehaviour>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitMisbehaviourResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn recover_client<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgRecoverClient>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRecoverClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn ibc_software_upgrade<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgIbcSoftwareUpgrade>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgIbcSoftwareUpgradeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_client_params<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgUpdateParams>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with MsgServer.

Required Methods§

Source

fn create_client<'life0, 'async_trait>( &'life0 self, request: Request<MsgCreateClient>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

CreateClient defines a rpc handler method for MsgCreateClient.

Source

fn update_client<'life0, 'async_trait>( &'life0 self, request: Request<MsgUpdateClient>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

UpdateClient defines a rpc handler method for MsgUpdateClient.

Source

fn upgrade_client<'life0, 'async_trait>( &'life0 self, request: Request<MsgUpgradeClient>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpgradeClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

UpgradeClient defines a rpc handler method for MsgUpgradeClient.

Source

fn submit_misbehaviour<'life0, 'async_trait>( &'life0 self, request: Request<MsgSubmitMisbehaviour>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitMisbehaviourResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.

Source

fn recover_client<'life0, 'async_trait>( &'life0 self, request: Request<MsgRecoverClient>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRecoverClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

RecoverClient defines a rpc handler method for MsgRecoverClient.

Source

fn ibc_software_upgrade<'life0, 'async_trait>( &'life0 self, request: Request<MsgIbcSoftwareUpgrade>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgIbcSoftwareUpgradeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

IBCSoftwareUpgrade defines a rpc handler method for MsgIBCSoftwareUpgrade.

Source

fn update_client_params<'life0, 'async_trait>( &'life0 self, request: Request<MsgUpdateParams>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

UpdateClientParams defines a rpc handler method for MsgUpdateParams.

Implementors§