Trait Msg

Source
pub trait Msg:
    Send
    + Sync
    + 'static {
    // Required methods
    fn grant<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgGrant>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgGrantResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn exec<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgExec>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgExecResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn revoke<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgRevoke>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgRevokeResponse>, 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§

Source

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

Source

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

Source

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

Implementors§