pub enum AlmanacError {
Ephemeris {
action: &'static str,
source: Box<EphemerisError>,
},
Orientation {
action: &'static str,
source: Box<OrientationError>,
},
Loading {
path: String,
source: InputOutputError,
},
TLDataSet {
action: &'static str,
source: DataSetError,
},
GenericError {
err: String,
},
Meta {
fno: usize,
file: MetaFile,
source: MetaAlmanacError,
},
}Variants§
Trait Implementations§
Source§impl Debug for AlmanacError
impl Debug for AlmanacError
Source§impl Display for AlmanacError
impl Display for AlmanacError
Source§impl Error for AlmanacError
impl Error for AlmanacError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for AlmanacError
impl ErrorCompat for AlmanacError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<AlmanacError> for PyErr
impl From<AlmanacError> for PyErr
Source§fn from(err: AlmanacError) -> PyErr
fn from(err: AlmanacError) -> PyErr
Converts to this type from the input type.
Source§impl<__T0> IntoError<AlmanacError> for EphemerisSnafu<__T0>
impl<__T0> IntoError<AlmanacError> for EphemerisSnafu<__T0>
Source§type Source = EphemerisError
type Source = EphemerisError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl<__T0> IntoError<AlmanacError> for GenericSnafu<__T0>
impl<__T0> IntoError<AlmanacError> for GenericSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl<__T0> IntoError<AlmanacError> for LoadingSnafu<__T0>
impl<__T0> IntoError<AlmanacError> for LoadingSnafu<__T0>
Source§type Source = InputOutputError
type Source = InputOutputError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<AlmanacError> for MetaSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<AlmanacError> for MetaSnafu<__T0, __T1>
Source§type Source = MetaAlmanacError
type Source = MetaAlmanacError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl<__T0> IntoError<AlmanacError> for OrientationSnafu<__T0>
impl<__T0> IntoError<AlmanacError> for OrientationSnafu<__T0>
Source§type Source = OrientationError
type Source = OrientationError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl<__T0> IntoError<AlmanacError> for TLDataSetSnafu<__T0>
impl<__T0> IntoError<AlmanacError> for TLDataSetSnafu<__T0>
Source§type Source = DataSetError
type Source = DataSetError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AlmanacError
fn into_error(self, error: Self::Source) -> AlmanacError
Combine the information to produce the error
Source§impl PartialEq for AlmanacError
impl PartialEq for AlmanacError
impl StructuralPartialEq for AlmanacError
Auto Trait Implementations§
impl Freeze for AlmanacError
impl !RefUnwindSafe for AlmanacError
impl Send for AlmanacError
impl Sync for AlmanacError
impl Unpin for AlmanacError
impl !UnwindSafe for AlmanacError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.