pub enum EclipseError {
OutOfWindow {
julian_day: f64,
},
Backend(String),
MissingCoordinates {
body_label: &'static str,
julian_day: f64,
},
InvalidObserver {
detail: String,
},
InvalidAtmosphere {
detail: String,
},
}Expand description
Errors returned by the eclipse engine; all variants fail closed.
Variants§
OutOfWindow
A requested instant falls outside the 1900–2100 CE window.
Backend(String)
The backend returned a structured error (message forwarded verbatim).
MissingCoordinates
The backend produced no ecliptic coordinates for a required body.
Fields
InvalidObserver
The supplied observer location was invalid.
InvalidAtmosphere
The supplied atmosphere had a non-finite field.
Trait Implementations§
Source§impl Clone for EclipseError
impl Clone for EclipseError
Source§impl Debug for EclipseError
impl Debug for EclipseError
Source§impl Display for EclipseError
impl Display for EclipseError
Source§impl Error for EclipseError
impl Error for EclipseError
1.30.0 · 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 PartialEq for EclipseError
impl PartialEq for EclipseError
impl StructuralPartialEq for EclipseError
Auto Trait Implementations§
impl Freeze for EclipseError
impl RefUnwindSafe for EclipseError
impl Send for EclipseError
impl Sync for EclipseError
impl Unpin for EclipseError
impl UnsafeUnpin for EclipseError
impl UnwindSafe for EclipseError
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