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
requested: f64ceil((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.
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
impl Clone for ScreeningError
impl Copy for ScreeningError
Source§impl Debug for ScreeningError
impl Debug for ScreeningError
Source§impl Display for ScreeningError
impl Display for ScreeningError
Source§impl Error for ScreeningError
impl Error for ScreeningError
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()