pub trait RpcService: Send + Sync + 'static {
    // Required methods
    fn query_flight<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryFlightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryFlightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_itinerary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateItineraryRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TaskResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_itinerary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CancelItineraryRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TaskResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_task<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TaskRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TaskResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_task_status<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TaskRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TaskResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_ready<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ReadyRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ReadyResponse>, 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 RpcServiceServer.

Required Methods§

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§