#[non_exhaustive]pub enum FindError {
NotFound {
wanted: String,
},
Ambiguous {
wanted: String,
matches: u32,
candidates: Vec<String>,
},
Hybrid {
motor: String,
},
NoFile {
motor: String,
why: Option<String>,
},
ThrustCurve(ThrustCurveError),
}Expand description
Why no motor was found.
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.
NotFound
No motor has the name as its designation or its common name.
Ambiguous
Several solid motors answer the name.
Fields
Hybrid
The one motor that answers is a hybrid.
NoFile
The motor has no RASP or RockSim file that hpr_motor reads.
Fields
ThrustCurve(ThrustCurveError)
A request or answer was refused, or the fetch failed.
Implementations§
Trait Implementations§
Source§impl Error for FindError
impl Error for FindError
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<ThrustCurveError> for FindError
impl From<ThrustCurveError> for FindError
Source§fn from(source: ThrustCurveError) -> Self
fn from(source: ThrustCurveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FindError
impl !UnwindSafe for FindError
impl Freeze for FindError
impl Send for FindError
impl Sync for FindError
impl Unpin for FindError
impl UnsafeUnpin for FindError
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