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
Just like GrpcQueryHandler
but use BoxedError
basically just a specialized GrpcQueryHandler<Error=BoxedError>
this is only useful for flownode to invoke 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<E: ErrorExt + Send + Sync + 'static, T: GrpcQueryHandler<Error = E> + Send + Sync + 'static> GrpcQueryHandlerWithBoxedError for T
auto impl