pub enum WindScenarioError {
Show 17 variants
UnsupportedVersion {
version: u32,
expected: u32,
},
NoScenarios,
TooManyScenarios {
count: usize,
max: usize,
},
EmptyScenarioName {
index: usize,
},
DuplicateScenarioName {
name: String,
},
NoSegments {
name: String,
},
MalformedSegment {
scenario: String,
index: usize,
message: String,
},
InvalidSegment {
scenario: String,
message: String,
},
UnknownNominal {
name: String,
available: Vec<String>,
},
NoRanges,
TooManyRanges {
count: usize,
max: usize,
},
InvalidRange {
value: f64,
},
DuplicateRange {
value: f64,
},
InvalidTarget {
message: String,
},
InvalidLoad {
field: &'static str,
value: f64,
},
MalformedDocument {
message: String,
},
SolveFailed {
scenario: String,
message: String,
},
}Expand description
Why a robust-hold run was rejected. Typed, and every variant is raised BEFORE any
trajectory is solved except Self::SolveFailed.
Variants§
UnsupportedVersion
The set declared a version this build does not implement.
NoScenarios
No scenarios at all.
TooManyScenarios
More scenarios than MAX_WIND_SCENARIOS.
EmptyScenarioName
A scenario carried an empty or whitespace-only name.
DuplicateScenarioName
Two scenarios shared a name, so the report could not keep their provenance apart.
NoSegments
A scenario carried no wind segments.
MalformedSegment
A segment token could not be parsed.
InvalidSegment
A segment parsed but violated crate::wind::validate_wind_segments.
UnknownNominal
nominal named a scenario that is not in the set.
NoRanges
No ranges were requested.
TooManyRanges
More ranges than MAX_CORRIDOR_RANGES.
InvalidRange
A requested range was not finite and positive.
DuplicateRange
The same range was requested twice.
InvalidTarget
A target dimension was not finite and positive.
InvalidLoad
A load or atmosphere value was not usable.
MalformedDocument
The scenario set could not be decoded at all.
SolveFailed
A scenario’s trajectory could not be solved, or did not reach a requested range.
Trait Implementations§
Source§impl Clone for WindScenarioError
impl Clone for WindScenarioError
Source§fn clone(&self) -> WindScenarioError
fn clone(&self) -> WindScenarioError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindScenarioError
impl Debug for WindScenarioError
Source§impl Display for WindScenarioError
impl Display for WindScenarioError
Source§impl Error for WindScenarioError
impl Error for WindScenarioError
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
use the Display impl or to_string()
Source§impl PartialEq for WindScenarioError
impl PartialEq for WindScenarioError
impl StructuralPartialEq for WindScenarioError
Auto Trait Implementations§
impl Freeze for WindScenarioError
impl RefUnwindSafe for WindScenarioError
impl Send for WindScenarioError
impl Sync for WindScenarioError
impl Unpin for WindScenarioError
impl UnsafeUnpin for WindScenarioError
impl UnwindSafe for WindScenarioError
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,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.