pub trait QueryService: Send + Sync + 'static {
    type AuctionStateByIdsStream: Stream<Item = Result<AuctionStateByIdsResponse, Status>> + Send + 'static;

    // Required methods
    fn auction_state_by_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AuctionStateByIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AuctionStateByIdResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn auction_state_by_ids<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AuctionStateByIdsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::AuctionStateByIdsStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature rpc only.
Expand description

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

Required Associated Types§

source

type AuctionStateByIdsStream: Stream<Item = Result<AuctionStateByIdsResponse, Status>> + Send + 'static

Server streaming response type for the AuctionStateByIds method.

Required Methods§

source

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

Get the current state of an auction by ID.

source

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

Get the current state of a group of auctions by ID.

Implementors§