Skip to main content

ProviderService

Trait ProviderService 

Source
pub trait ProviderService:
    Send
    + Sync
    + 'static {
    type ApplyStream: Stream<Item = Result<ApplyResponse, Status>> + Send + 'static;

    // Required methods
    fn get_metadata<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetMetadataRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetMetadataResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn observe<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ObserveRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ObserveResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn capture<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CaptureRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CaptureResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn plan<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PlanRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PlanResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn apply<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ApplyRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ApplyStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn verify<'life0, 'async_trait>(
        &'life0 self,
        request: Request<VerifyRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<VerifyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CancelRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CancelResponse>, 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 ProviderServiceServer.

Required Associated Types§

Source

type ApplyStream: Stream<Item = Result<ApplyResponse, Status>> + Send + 'static

Server streaming response type for the Apply method.

Required Methods§

Source

fn get_metadata<'life0, 'async_trait>( &'life0 self, request: Request<GetMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetMetadataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn observe<'life0, 'async_trait>( &'life0 self, request: Request<ObserveRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ObserveResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn capture<'life0, 'async_trait>( &'life0 self, request: Request<CaptureRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CaptureResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn plan<'life0, 'async_trait>( &'life0 self, request: Request<PlanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PlanResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn apply<'life0, 'async_trait>( &'life0 self, request: Request<ApplyRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ApplyStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn verify<'life0, 'async_trait>( &'life0 self, request: Request<VerifyRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<VerifyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn cancel<'life0, 'async_trait>( &'life0 self, request: Request<CancelRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CancelResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§