pub trait QueryService:
Send
+ Sync
+ 'static {
type ExecuteStreamStream: Stream<Item = Result<ArrowFrame, Status>> + Send + 'static;
// Required methods
fn prepare<'life0, 'async_trait>(
&'life0 self,
request: Request<PrepareRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PrepareResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cancel_query<'life0, 'async_trait>(
&'life0 self,
request: Request<CancelQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelQueryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_query_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetQueryStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryStatusResponse>, 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 Associated Types§
Sourcetype ExecuteStreamStream: Stream<Item = Result<ArrowFrame, Status>> + Send + 'static
type ExecuteStreamStream: Stream<Item = Result<ArrowFrame, Status>> + Send + 'static
Server streaming response type for the ExecuteStream method.
Required Methods§
fn prepare<'life0, 'async_trait>(
&'life0 self,
request: Request<PrepareRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PrepareResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ExecuteStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_query<'life0, 'async_trait>(
&'life0 self,
request: Request<CancelQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelQueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_query_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetQueryStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".