#[non_exhaustive]pub enum RealFlightError {
Io {
what: &'static str,
path: String,
source: Error,
},
Input {
flight: String,
what: String,
},
Sim {
flight: String,
source: SimError,
},
}Expand description
Why a real flight could not be read, flown or reported.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
A file could not be read.
Input
A file’s content is not what the flight needs.
Sim
hpr could not fly it.
Trait Implementations§
Source§impl Debug for RealFlightError
impl Debug for RealFlightError
Source§impl Display for RealFlightError
impl Display for RealFlightError
Source§impl Error for RealFlightError
impl Error for RealFlightError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RealFlightError
impl !UnwindSafe for RealFlightError
impl Freeze for RealFlightError
impl Send for RealFlightError
impl Sync for RealFlightError
impl Unpin for RealFlightError
impl UnsafeUnpin for RealFlightError
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