JobService

Trait JobService 

Source
pub trait JobService:
    Send
    + Sync
    + 'static {
    type GetJobsStream: Stream<Item = Result<GetJobsResponse, Status>> + Send + 'static;
    type GetJobSubscriptionStream: Stream<Item = Result<GetJobSubscriptionResponse, Status>> + Send + 'static;

    // Required methods
    fn get_jobs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetJobsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetJobsStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_job_subscription<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetJobSubscriptionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetJobSubscriptionStream>, 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 JobServiceServer.

Required Associated Types§

Source

type GetJobsStream: Stream<Item = Result<GetJobsResponse, Status>> + Send + 'static

Server streaming response type for the GetJobs method.

Source

type GetJobSubscriptionStream: Stream<Item = Result<GetJobSubscriptionResponse, Status>> + Send + 'static

Server streaming response type for the GetJobSubscription method.

Required Methods§

Source

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

Source

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

Implementors§