BatchExchangeService

Trait BatchExchangeService 

Source
pub trait BatchExchangeService:
    Send
    + Sync
    + 'static {
    type GetDataStream: Stream<Item = Result<GetDataResponse, Status>> + Send + 'static;

    // Required method
    fn get_data<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetDataRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetDataStream>, 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 BatchExchangeServiceServer.

Required Associated Types§

Source

type GetDataStream: Stream<Item = Result<GetDataResponse, Status>> + Send + 'static

Server streaming response type for the GetData method.

Required Methods§

Source

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

Implementors§