Struct svc_compliance::grpc::server::ServerImpl
source · pub struct ServerImpl {
pub mq_channel: Option<Channel>,
pub region: Box<dyn RegionInterface + Send + Sync>,
}
Expand description
struct to implement the gRPC server functions
Fields§
§mq_channel: Option<Channel>
AMQP channel
region: Box<dyn RegionInterface + Send + Sync>
Region interface
Trait Implementations§
source§impl Debug for ServerImpl
impl Debug for ServerImpl
source§impl RpcService for ServerImpl
impl RpcService for ServerImpl
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,
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,
Returns ready:true when service is available
source§fn submit_flight_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<FlightPlanRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<FlightPlanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit_flight_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<FlightPlanRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<FlightPlanResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
submit flight plan
source§fn request_flight_release<'life0, 'async_trait>(
&'life0 self,
request: Request<FlightReleaseRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<FlightReleaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_flight_release<'life0, 'async_trait>(
&'life0 self,
request: Request<FlightReleaseRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<FlightReleaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
release flight plan
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> 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