pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn address<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAddress>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAddressResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryStats>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats_by_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryStatsByChannel>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryStatsByChannelResponse>, 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 QueryServer.