pub trait GrpcQueryHandlerWithBoxedError:
Send
+ Sync
+ 'static {
// Required method
fn do_query<'life0, 'async_trait>(
&'life0 self,
query: Request,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output, BoxedError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Adapter trait for [GrpcQueryHandler] that boxes the underlying error into [BoxedError].
This is mainly used by flownode to invoke a frontend instance in standalone mode.
Required Methods§
fn do_query<'life0, 'async_trait>(
&'life0 self,
query: Request,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output, BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Implementors§
impl<T: GrpcQueryHandler + Send + Sync + 'static> GrpcQueryHandlerWithBoxedError for T
auto impl