Struct svc_compliance::region::RegionImpl
source · pub struct RegionImpl {
pub region: String,
}
Expand description
Generic region struct to be used to implement the region specific traits
Fields§
§region: String
The implemented region short code
Trait Implementations§
source§impl Clone for RegionImpl
impl Clone for RegionImpl
source§fn clone(&self) -> RegionImpl
fn clone(&self) -> RegionImpl
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 RegionImpl
impl Debug for RegionImpl
source§impl Default for RegionImpl
impl Default for RegionImpl
source§impl RegionInterface for RegionImpl
impl RegionInterface for RegionImpl
Processes for submission to the US authorities
source§fn get_region(&self) -> &str
fn get_region(&self) -> &str
Return the region short code of the implementation
source§fn submit_flight_plan(
&self,
request: FlightPlanRequest
) -> Result<Response<FlightPlanResponse>, Status>
fn submit_flight_plan( &self, request: FlightPlanRequest ) -> Result<Response<FlightPlanResponse>, Status>
Submit a new flight plan for the region
source§fn request_flight_release(
&self,
request: Request<FlightReleaseRequest>
) -> Result<Response<FlightReleaseResponse>, Status>
fn request_flight_release( &self, request: Request<FlightReleaseRequest> ) -> Result<Response<FlightReleaseResponse>, Status>
Request a flight plan release for the region
source§fn acquire_restrictions<'life0, 'life1, 'async_trait>(
&'life0 self,
restrictions: &'life1 mut HashMap<String, RestrictionDetails>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn acquire_restrictions<'life0, 'life1, 'async_trait>(
&'life0 self,
restrictions: &'life1 mut HashMap<String, RestrictionDetails>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Refresh the in memory stored restrictions
Auto Trait Implementations§
impl RefUnwindSafe for RegionImpl
impl Send for RegionImpl
impl Sync for RegionImpl
impl Unpin for RegionImpl
impl UnwindSafe for RegionImpl
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