pub enum InterferenceError {
Show 20 variants
InvalidQuantity {
name: &'static str,
value: f64,
},
InvalidDirection {
x: f64,
y: f64,
z: f64,
},
EmptySourceSet,
EmptySourceId,
DuplicateSourceId {
id: String,
},
NonFinitePropagation {
source_id: String,
name: &'static str,
value: f64,
},
SingularPointSample {
source_id: String,
distance_metres: f64,
singularity_radius_metres: f64,
},
BehindForwardPlane {
source_id: String,
signed_distance_metres: f64,
},
NonOrthogonalSamplingAxes {
dot_product: f64,
max_abs_dot_product: f64,
},
ZeroSamplingDimension {
name: &'static str,
},
SamplingCellCountOverflow {
rows: usize,
columns: usize,
},
InvalidSamplingCellSize {
axis: &'static str,
value: f64,
},
SamplingCellOutOfBounds {
row: usize,
column: usize,
rows: usize,
columns: usize,
},
NonFiniteSamplingMetric {
name: &'static str,
value: f64,
},
InvalidSamplingThreshold {
name: &'static str,
value: f64,
},
InconsistentSamplingThresholds {
resolved_min_samples_per_wavelength: f64,
marginal_min_samples_per_wavelength: f64,
resolved_max_envelope_fraction_per_cell: f64,
marginal_max_envelope_fraction_per_cell: f64,
},
SamplingRefused {
certificate: SamplingCertificate,
},
UnboundedSamplingEnvelope {
nearest_point_source_distance_m: f64,
cell_diagonal_m: f64,
},
WorkEstimateOverflow {
metric: WorkMetric,
},
WorkBudgetExceeded {
metric: WorkMetric,
estimate: u64,
limit: u64,
},
}Expand description
An invalid value at an interference-domain boundary.
Variants§
InvalidQuantity
A quantity violated its finite, sign, or zero contract.
InvalidDirection
A direction was zero-length or had a non-finite component.
EmptySourceSet
A coherent problem was given no sources.
EmptySourceId
A source identity was empty.
DuplicateSourceId
More than one source used the same stable identity.
NonFinitePropagation
A finite input combination produced a non-finite propagation value.
Fields
SingularPointSample
A point-source sample entered its excluded singular region.
Fields
BehindForwardPlane
A sample was behind a forward-plane emitter.
Fields
NonOrthogonalSamplingAxes
Sampling-plane axes were not orthogonal within the public tolerance.
Fields
ZeroSamplingDimension
A sampling-plane dimension was zero.
SamplingCellCountOverflow
The sampling-plane cell count could not be represented.
InvalidSamplingCellSize
A derived sampling-plane cell size was not positive and finite.
Fields
SamplingCellOutOfBounds
A requested sampling cell lies outside the plane.
Fields
NonFiniteSamplingMetric
A finite sampling input combination produced a non-finite metric.
InvalidSamplingThreshold
A sampling classification threshold was not finite and in-range.
InconsistentSamplingThresholds
Sampling thresholds did not order resolved before marginal.
Fields
SamplingRefused
Strict sampling policy rejected a non-resolved certificate.
Fields
certificate: SamplingCertificateComplete measurements and thresholds that caused refusal.
UnboundedSamplingEnvelope
A point source touched the plane or exceeded finite envelope range.
Fields
WorkEstimateOverflow
Checked arithmetic could not represent a work-estimate metric.
Fields
metric: WorkMetricMetric whose derivation overflowed.
WorkBudgetExceeded
A work estimate exceeded one explicit budget field.
Trait Implementations§
Source§impl Clone for InterferenceError
impl Clone for InterferenceError
Source§fn clone(&self) -> InterferenceError
fn clone(&self) -> InterferenceError
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 InterferenceError
impl Debug for InterferenceError
Source§impl Display for InterferenceError
impl Display for InterferenceError
Source§impl Error for InterferenceError
impl Error for InterferenceError
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()