pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGrantsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGrantsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn granter_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranterGrantsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranterGrantsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn grantee_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranteeGrantsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranteeGrantsResponse>, 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 QueryServer.