pub trait Msg: Send + Sync + 'static {
// Required methods
fn channel_open_init<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenInit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenInitResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn channel_open_try<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenTry>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenTryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn channel_open_ack<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenAck>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenAckResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn channel_open_confirm<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenConfirm>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenConfirmResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn channel_close_init<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelCloseInit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseInitResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn channel_close_confirm<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelCloseConfirm>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseConfirmResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recv_packet<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgRecvPacket>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgRecvPacketResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn timeout<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgTimeout>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn timeout_on_close<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgTimeoutOnClose>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutOnCloseResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn acknowledgement<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgAcknowledgement>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgAcknowledgementResponse>, 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§
sourcefn channel_open_init<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenInit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenInitResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_open_init<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelOpenInit> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenInitResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
sourcefn channel_open_try<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenTry>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenTryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_open_try<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelOpenTry> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenTryResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
sourcefn channel_open_ack<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenAck>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenAckResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_open_ack<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelOpenAck> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenAckResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
sourcefn channel_open_confirm<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelOpenConfirm>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenConfirmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_open_confirm<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelOpenConfirm> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelOpenConfirmResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
sourcefn channel_close_init<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelCloseInit>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseInitResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_close_init<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelCloseInit> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseInitResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
sourcefn channel_close_confirm<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgChannelCloseConfirm>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseConfirmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel_close_confirm<'life0, 'async_trait>( &'life0 self, request: Request<MsgChannelCloseConfirm> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgChannelCloseConfirmResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
sourcefn recv_packet<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgRecvPacket>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgRecvPacketResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv_packet<'life0, 'async_trait>( &'life0 self, request: Request<MsgRecvPacket> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRecvPacketResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
RecvPacket defines a rpc handler method for MsgRecvPacket.
sourcefn timeout<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgTimeout>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn timeout<'life0, 'async_trait>( &'life0 self, request: Request<MsgTimeout> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Timeout defines a rpc handler method for MsgTimeout.
sourcefn timeout_on_close<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgTimeoutOnClose>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutOnCloseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn timeout_on_close<'life0, 'async_trait>( &'life0 self, request: Request<MsgTimeoutOnClose> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgTimeoutOnCloseResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
sourcefn acknowledgement<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgAcknowledgement>
) -> Pin<Box<dyn Future<Output = Result<Response<MsgAcknowledgementResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn acknowledgement<'life0, 'async_trait>( &'life0 self, request: Request<MsgAcknowledgement> ) -> Pin<Box<dyn Future<Output = Result<Response<MsgAcknowledgementResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Acknowledgement defines a rpc handler method for MsgAcknowledgement.