Trait penumbra_proto::penumbra::core::component::auction::v1alpha1::query_service_server::QueryService
source · 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§
sourcetype AuctionStateByIdsStream: Stream<Item = Result<AuctionStateByIdsResponse, Status>> + Send + 'static
type AuctionStateByIdsStream: Stream<Item = Result<AuctionStateByIdsResponse, Status>> + Send + 'static
Server streaming response type for the AuctionStateByIds method.
Required Methods§
sourcefn 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_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.
sourcefn 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,
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.