#[non_exhaustive]pub enum SyntheticError {
Sim(SimError),
Analysis(AnalysisError),
Motor(MotorError),
Atmos(AtmosError),
Core(CoreError),
Json(Error),
Design {
design: &'static str,
what: &'static str,
},
Flight {
what: &'static str,
},
Invalid {
what: &'static str,
},
}Expand description
Why a synthetic flight couldn’t be made.
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.
Sim(SimError)
HPR Sim refused or failed the flight.
Analysis(AnalysisError)
The motor couldn’t be scaled.
Motor(MotorError)
The motor couldn’t be rebuilt.
Atmos(AtmosError)
The air or the wind refused its inputs.
Core(CoreError)
The site or its frame refused its inputs.
Json(Error)
A design’s JSON didn’t read.
Design
A design isn’t as this module expects.
Flight
The flight came down without an event a truth needs.
Invalid
An input no flight or logger can have.
Trait Implementations§
Source§impl Debug for SyntheticError
impl Debug for SyntheticError
Source§impl Display for SyntheticError
impl Display for SyntheticError
Source§impl Error for SyntheticError
impl Error for SyntheticError
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()
Source§impl From<AnalysisError> for SyntheticError
impl From<AnalysisError> for SyntheticError
Source§fn from(source: AnalysisError) -> Self
fn from(source: AnalysisError) -> Self
Converts to this type from the input type.
Source§impl From<AtmosError> for SyntheticError
impl From<AtmosError> for SyntheticError
Source§fn from(source: AtmosError) -> Self
fn from(source: AtmosError) -> Self
Converts to this type from the input type.
Source§impl From<CoreError> for SyntheticError
impl From<CoreError> for SyntheticError
Source§impl From<Error> for SyntheticError
impl From<Error> for SyntheticError
Source§impl From<MotorError> for SyntheticError
impl From<MotorError> for SyntheticError
Source§fn from(source: MotorError) -> Self
fn from(source: MotorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SyntheticError
impl !UnwindSafe for SyntheticError
impl Freeze for SyntheticError
impl Send for SyntheticError
impl Sync for SyntheticError
impl Unpin for SyntheticError
impl UnsafeUnpin for SyntheticError
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