Struct svc_scheduler::grpc::server::ServerImpl
source · pub struct ServerImpl {}
Expand description
struct to implement the gRPC server functions
Trait Implementations§
source§impl Clone for ServerImpl
impl Clone for ServerImpl
source§fn clone(&self) -> ServerImpl
fn clone(&self) -> ServerImpl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerImpl
impl Debug for ServerImpl
source§impl Default for ServerImpl
impl Default for ServerImpl
source§fn default() -> ServerImpl
fn default() -> ServerImpl
Returns the “default value” for a type. Read more
source§impl RpcService for ServerImpl
impl RpcService for ServerImpl
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,
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,
finds the first possible flight for customer location, flight type and requested time. Returns possible itineraries which can be used to create an itinerary.
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: Send + '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: Send + 'async_trait,
'life0: 'async_trait,
Creates an itinerary given a list of flight plans, if possible.
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: Send + '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: Send + 'async_trait,
'life0: 'async_trait,
Cancels the itinerary by id.
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: Send + '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: Send + 'async_trait,
'life0: 'async_trait,
Cancels a scheduler task before it can be processed
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: Send + '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: Send + 'async_trait,
'life0: 'async_trait,
Returns the status of a scheduler task
impl Copy for ServerImpl
Auto Trait Implementations§
impl RefUnwindSafe for ServerImpl
impl Send for ServerImpl
impl Sync for ServerImpl
impl Unpin for ServerImpl
impl UnwindSafe for ServerImpl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request