pub trait OrderbookAggregator: Send + Sync + 'static {
    type BookSummaryStream: Stream<Item = Result<Summary, Status>> + Send + 'static;
    fn book_summary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BookRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::BookSummaryStream>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ServiceInfo>, 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 OrderbookAggregatorServer.

Associated Types

Server streaming response type for the BookSummary method.

Required methods

Implementors