pub enum Error {
Show 20 variants
ExpectedSpeedOnFPL,
ExpectedLevelOnFPL,
UnexpectedRouteToken(String),
UnexpectedRunwayInRoute(String),
UnknownRunwayInRoute {
arpt: String,
rwy: String,
},
AmbiguousTerminalArea {
wp: String,
a: String,
b: String,
},
InvalidA424 {
record: Vec<u8>,
error: String,
},
UnexpectedString,
ImplausibleValue,
UnknownLocationIndicator(String),
UnknownIdent(String),
InvalidRWYCC,
UnexpectedMassesForStations,
UnexpectedNumberOfFuelStations,
ExceededFuelCapacityOnRamp,
ExceededFuelCapacityAfterLanding,
ExpectedRegistration,
ExpectedEmptyMass,
ExpectedEmptyBalance,
ExpectedFuelType,
}Variants§
ExpectedSpeedOnFPL
The entered flight plan does not include a cruise speed as one of the first two elements.
ExpectedLevelOnFPL
The entered flight plan does not include a cruise level as one of the first two elements.
UnexpectedRouteToken(String)
The route prompt includes a token that was not expected.
UnexpectedRunwayInRoute(String)
The route includes a runway at a position that is not next to an airport.
UnknownRunwayInRoute
The route includes a runway that is not found on the associated airport.
AmbiguousTerminalArea
A terminal waypoint needs to match to exactly one of the terminal areas in scope.
InvalidA424
The ARINC 424 navigation data record is invalid.
UnexpectedString
The string that should be parsed to create some type is malformed.
ImplausibleValue
The value that should be returned is implausible.
UnknownLocationIndicator(String)
The location indicator should be a two-letter code according to ICAO Document No. 7910.
UnknownIdent(String)
The requested identifier is not know.
InvalidRWYCC
The RWYCC should be between 0 and 6.
UnexpectedMassesForStations
The number of masses doesn’t match the number of stations to which the masses are assigned.
UnexpectedNumberOfFuelStations
The number of provided fuel stations doesn’t match the aircraft’s fuel stations.
ExceededFuelCapacityOnRamp
The planned fuel on ramp exceeds the tank’s capacity.
ExceededFuelCapacityAfterLanding
The planned fuel after landing exceeds the tank’s capacity.
ExpectedRegistration
The aircraft’s registration is not set.
ExpectedEmptyMass
The aircraft’s empty mass is not set.
ExpectedEmptyBalance
The aircraft’s empty balance is not set.
ExpectedFuelType
The aircraft’s fuel type is not set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more