Trait Msg

Source
pub trait Msg:
    Send
    + Sync
    + 'static {
    // Required methods
    fn connection_open_init<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgConnectionOpenInit>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgConnectionOpenInitResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_open_try<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgConnectionOpenTry>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgConnectionOpenTryResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_open_ack<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgConnectionOpenAck>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgConnectionOpenAckResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connection_open_confirm<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgConnectionOpenConfirm>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgConnectionOpenConfirmResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_connection_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 connection_open_init<'life0, 'async_trait>( &'life0 self, request: Request<MsgConnectionOpenInit>, ) -> Pin<Box<dyn Future<Output = Result<Response<MsgConnectionOpenInitResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.

Source

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

ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.

Source

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

ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.

Source

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

ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.

Source

fn update_connection_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,

UpdateConnectionParams defines a rpc handler method for MsgUpdateParams.

Implementors§