pub trait Msg: Send + Sync + 'static {
    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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Required Methods§

ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.

ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.

ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.

ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.

ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.

ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.

RecvPacket defines a rpc handler method for MsgRecvPacket.

Timeout defines a rpc handler method for MsgTimeout.

TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.

Acknowledgement defines a rpc handler method for MsgAcknowledgement.

Implementors§