Trait servers::query_handler::grpc::GrpcQueryHandler

source ·
pub trait GrpcQueryHandler {
    type Error: ErrorExt;

    // Required method
    fn do_query<'life0, 'async_trait>(
        &'life0 self,
        query: Request,
        ctx: QueryContextRef,
    ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

source

type Error: ErrorExt

Required Methods§

source

fn do_query<'life0, 'async_trait>( &'life0 self, query: Request, ctx: QueryContextRef, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<E> GrpcQueryHandler for ServerGrpcQueryHandlerAdapter<E>
where E: ErrorExt + Send + Sync + 'static,

§

type Error = Error