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§

source

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>

Submit a new flight plan for the region

source

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,

Refresh the in memory stored restrictions

source

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,

Refresh the in memory stored waypoints

Implementors§

source§

impl RegionInterface for RegionImpl

Processes for submission to the US authorities