Skip to main content

ScreeningError

Enum ScreeningError 

Source
pub enum ScreeningError {
    Step(f64),
    TooManySamples {
        step: f64,
        requested: f64,
    },
    Tolerance(f64),
    Span {
        start: f64,
        end: f64,
    },
    Coverage(f64),
}
Expand description

Why a scan could not be run to the end of its span. Each variant names the argument that was wrong and its value, so that “nothing found” is never the report for a malformed request.

Variants§

§

Step(f64)

The sample interval is not a positive, finite number of seconds.

§

TooManySamples

The span needs more samples at this step than one scan will take. The step is well formed and the pair is not, which is why it is not ScreeningError::Step.

Fields

§step: f64

The requested sample interval, seconds.

§requested: f64

ceil((end - start) / step), against a ceiling of MAX_SAMPLES.

§

Tolerance(f64)

The refinement tolerance is not a positive, finite number of seconds.

§

Span

end - start is zero, negative or not finite — which also covers either endpoint being NaN or infinite, since the difference is then never a finite positive number.

Fields

§start: f64

The requested start of the scan.

§end: f64

The requested end of the scan.

§

Coverage(f64)

The relative state was not finite at this epoch: the ephemeris stopped covering the span. Approaches already reported through emit before it stand; the span past it was not scanned.

Trait Implementations§

Source§

impl Clone for ScreeningError

Source§

fn clone(&self) -> Self

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 Copy for ScreeningError

Source§

impl Debug for ScreeningError

Source§

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

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

impl Display for ScreeningError

Source§

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

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

impl Error for ScreeningError

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 ScreeningError

Source§

fn eq(&self, other: &Self) -> 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 ScreeningError

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.