pub trait Msg: Send + Sync + 'static {
fn create_client<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateClient>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateClientResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with MsgServer.
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
'life0: 'async_trait,
Self: 'async_trait,
fn create_client<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateClient>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateClientResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
CreateClient defines a rpc handler method for MsgCreateClient.
fn update_client<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateClient>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateClientResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
UpdateClient defines a rpc handler method for MsgUpdateClient.
fn upgrade_client<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpgradeClient>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpgradeClientResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
UpgradeClient defines a rpc handler method for MsgUpgradeClient.
fn submit_misbehaviour<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgSubmitMisbehaviour>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgSubmitMisbehaviourResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.