pub trait ProposeService: Send + Sync + 'static {
    // Required methods
    fn propose<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ProposeQuery>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ProposeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn propose_result<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ProposeResultQuery>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ProposeResultResponse>, 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 ProposeServiceServer.

Required Methods§

source

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

source

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

Implementors§