side_proto::side::auction::msg_server

Trait Msg

Source
pub trait Msg:
    Send
    + Sync
    + 'static {
    // Required methods
    fn bid<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgBid>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgBidResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_bid<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MsgCancelBid>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MsgCancelBidResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_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;
}
Available on crate feature grpc only.
Expand description

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

Required Methods§

Source

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

Source

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

Source

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

Implementors§