pub trait QueryService:
Send
+ Sync
+ 'static {
// Required methods
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_newest<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryNewestRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryNewestResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServiceServer.
Required Methods§
Sourcefn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Envelopes across up to 1000 topics, each from its own cursor.
Sourcefn query_newest<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryNewestRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryNewestResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_newest<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryNewestRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryNewestResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Newest envelope (or its metadata) per topic.