Skip to main content

InterferenceError

Enum InterferenceError 

Source
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.

Fields

§name: &'static str

Stable public quantity name.

§value: f64

Rejected caller-supplied value.

§

InvalidDirection

A direction was zero-length or had a non-finite component.

Fields

§x: f64

Rejected x component.

§y: f64

Rejected y component.

§z: f64

Rejected z 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.

Fields

§id: String

Repeated source identity.

§

NonFinitePropagation

A finite input combination produced a non-finite propagation value.

Fields

§source_id: String

Source being evaluated.

§name: &'static str

Stable name for the derived value.

§value: f64

Rejected derived value.

§

SingularPointSample

A point-source sample entered its excluded singular region.

Fields

§source_id: String

Point-source identity.

§distance_metres: f64

Sample distance from the point source.

§singularity_radius_metres: f64

Inclusive exclusion radius.

§

BehindForwardPlane

A sample was behind a forward-plane emitter.

Fields

§source_id: String

Forward-plane source identity.

§signed_distance_metres: f64

Negative signed distance from the source plane.

§

NonOrthogonalSamplingAxes

Sampling-plane axes were not orthogonal within the public tolerance.

Fields

§dot_product: f64

Dot product of the normalized axes.

§max_abs_dot_product: f64

Largest accepted absolute dot product.

§

ZeroSamplingDimension

A sampling-plane dimension was zero.

Fields

§name: &'static str

Stable dimension name (rows or columns).

§

SamplingCellCountOverflow

The sampling-plane cell count could not be represented.

Fields

§rows: usize

Requested row count.

§columns: usize

Requested column count.

§

InvalidSamplingCellSize

A derived sampling-plane cell size was not positive and finite.

Fields

§axis: &'static str

Stable axis name (u or v).

§value: f64

Rejected derived cell size in metres.

§

SamplingCellOutOfBounds

A requested sampling cell lies outside the plane.

Fields

§row: usize

Requested row.

§column: usize

Requested column.

§rows: usize

Plane row count.

§columns: usize

Plane column count.

§

NonFiniteSamplingMetric

A finite sampling input combination produced a non-finite metric.

Fields

§name: &'static str

Stable metric name.

§value: f64

Rejected derived value.

§

InvalidSamplingThreshold

A sampling classification threshold was not finite and in-range.

Fields

§name: &'static str

Stable threshold field name.

§value: f64

Rejected caller-supplied value.

§

InconsistentSamplingThresholds

Sampling thresholds did not order resolved before marginal.

Fields

§resolved_min_samples_per_wavelength: f64

Comfortable carrier samples per wavelength.

§marginal_min_samples_per_wavelength: f64

Minimum carrier samples per wavelength.

§resolved_max_envelope_fraction_per_cell: f64

Comfortable envelope fraction.

§marginal_max_envelope_fraction_per_cell: f64

Maximum marginal envelope fraction.

§

SamplingRefused

Strict sampling policy rejected a non-resolved certificate.

Fields

§certificate: SamplingCertificate

Complete measurements and thresholds that caused refusal.

§

UnboundedSamplingEnvelope

A point source touched the plane or exceeded finite envelope range.

Fields

§nearest_point_source_distance_m: f64

Nearest distance from a point source to the finite plane.

§cell_diagonal_m: f64

Full diagonal of one sampling cell.

§

WorkEstimateOverflow

Checked arithmetic could not represent a work-estimate metric.

Fields

§metric: WorkMetric

Metric whose derivation overflowed.

§

WorkBudgetExceeded

A work estimate exceeded one explicit budget field.

Fields

§metric: WorkMetric

Metric whose limit was exceeded.

§estimate: u64

Requested work.

§limit: u64

Configured maximum.

Trait Implementations§

Source§

impl Clone for InterferenceError

Source§

fn clone(&self) -> InterferenceError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InterferenceError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InterferenceError

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InterferenceError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InterferenceError

Source§

fn eq(&self, other: &InterferenceError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InterferenceError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.