pub enum AstroLookupError {
InvalidConfiguration {
reason: String,
},
NetworkError(Error),
ParseError {
reason: String,
},
InvalidName {
name: String,
},
}Available on crate feature
coordinates only.Expand description
An enumeration of errors that can occur while performing a coordinate lookup.
Variants§
InvalidConfiguration
Indicates the environmental variables contributing to the SESAME configuration are invalid.
NetworkError(Error)
Indicates an error occurred while obtaining the coordinate data.
ParseError
Indicates an error occurred while parsing the coordinate data.
InvalidName
Indicates coordinate data for the given name could not be found.
Trait Implementations§
Source§impl Debug for AstroLookupError
impl Debug for AstroLookupError
Source§impl Display for AstroLookupError
impl Display for AstroLookupError
Source§impl Error for AstroLookupError
impl Error for AstroLookupError
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()
Auto Trait Implementations§
impl Freeze for AstroLookupError
impl !RefUnwindSafe for AstroLookupError
impl Send for AstroLookupError
impl Sync for AstroLookupError
impl Unpin for AstroLookupError
impl !UnwindSafe for AstroLookupError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> RealAny for Twhere
T: Any,
impl<T> RealAny for Twhere
T: Any,
Source§fn real_type_id(&self) -> TypeId
fn real_type_id(&self) -> TypeId
Available on crate feature
fits only.Gets the base type ID for
self.