pub enum ScenarioError {
InvalidLimit {
name: &'static str,
value: usize,
absolute_maximum: usize,
},
ZeroElementDimension {
name: &'static str,
},
SourceCountOverflow {
rows: usize,
columns: usize,
},
SourceLimitExceeded {
requested: usize,
limit: usize,
},
GeneratedIdLimitExceeded {
requested: usize,
limit: usize,
},
TotalIdLimitExceeded {
requested: usize,
limit: usize,
},
SparseAperture {
axis: &'static str,
spacing_wavelengths: f64,
maximum_wavelengths: f64,
},
Core {
cause: Box<InterferenceError>,
},
AllocationFailed {
sources: usize,
},
}Expand description
A named scenario was refused before returning a partial problem.
Variants§
InvalidLimit
A configured limit was zero or exceeded its absolute safety ceiling.
Fields
ZeroElementDimension
An array or aperture dimension was zero.
SourceCountOverflow
Rectangular source count overflowed usize.
SourceLimitExceeded
Source count exceeded the configured limit.
GeneratedIdLimitExceeded
One generated source id would exceed its configured byte limit.
TotalIdLimitExceeded
Aggregate generated id storage would exceed its configured byte limit.
SparseAperture
Strict policy rejected an active element spacing above lambda / 2.
Fields
Core
A derived geometric or phase value was invalid.
Fields
§
cause: Box<InterferenceError>Exact checked-domain diagnostic.
AllocationFailed
Source-vector storage could not be reserved after admission.
Trait Implementations§
Source§impl Clone for ScenarioError
impl Clone for ScenarioError
Source§fn clone(&self) -> ScenarioError
fn clone(&self) -> ScenarioError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScenarioError
impl Debug for ScenarioError
Source§impl Display for ScenarioError
impl Display for ScenarioError
Source§impl Error for ScenarioError
impl Error for ScenarioError
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<InterferenceError> for ScenarioError
impl From<InterferenceError> for ScenarioError
Source§fn from(cause: InterferenceError) -> Self
fn from(cause: InterferenceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScenarioError
impl PartialEq for ScenarioError
impl StructuralPartialEq for ScenarioError
Auto Trait Implementations§
impl Freeze for ScenarioError
impl RefUnwindSafe for ScenarioError
impl Send for ScenarioError
impl Sync for ScenarioError
impl Unpin for ScenarioError
impl UnsafeUnpin for ScenarioError
impl UnwindSafe for ScenarioError
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