Trait svc_compliance::region::RegionInterface
source · pub trait RegionInterface {
// Required methods
fn get_region(&self) -> &str;
fn submit_flight_plan(
&self,
request: FlightPlanRequest
) -> Result<Response<FlightPlanResponse>, Status>;
fn request_flight_release(
&self,
request: Request<FlightReleaseRequest>
) -> Result<Response<FlightReleaseResponse>, Status>;
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_waypoints<'life0, 'life1, 'async_trait>(
&'life0 self,
waypoints: &'life1 mut HashMap<String, Coordinates>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Interface to regional authorities
Required Methods§
sourcefn get_region(&self) -> &str
fn get_region(&self) -> &str
Return the region short code of the implementation
sourcefn 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
sourcefn 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
sourcefn 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
Implementors§
impl RegionInterface for RegionImpl
Processes for submission to the US authorities