#[non_exhaustive]pub enum GnssTimeError {
Overflow,
InvalidInput(&'static str),
LeapSecondsRequired,
}Expand description
All errors that gnss-time operations can produce.
This type is marked #[must_use]: ignoring an error from a fallible
conversion silently discards the failure reason.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Overflow
Integer arithmetic overflowed the u64 nanosecond range.
InvalidInput(&'static str)
A coordinate or parameter was outside its valid domain.
Carries a static description of which parameter was invalid.
LeapSecondsRequired
A conversion required leap-second context that was not provided.
Trait Implementations§
Source§impl Clone for GnssTimeError
impl Clone for GnssTimeError
Source§fn clone(&self) -> GnssTimeError
fn clone(&self) -> GnssTimeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GnssTimeError
impl Debug for GnssTimeError
Source§impl Display for GnssTimeError
impl Display for GnssTimeError
Source§impl Error for GnssTimeError
Available on crate feature std only.
impl Error for GnssTimeError
Available on crate feature
std only.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 Format for GnssTimeError
Available on crate feature defmt only.
impl Format for GnssTimeError
Available on crate feature
defmt only.Source§impl Hash for GnssTimeError
impl Hash for GnssTimeError
Source§impl PartialEq for GnssTimeError
impl PartialEq for GnssTimeError
impl Copy for GnssTimeError
impl Eq for GnssTimeError
impl StructuralPartialEq for GnssTimeError
Auto Trait Implementations§
impl Freeze for GnssTimeError
impl RefUnwindSafe for GnssTimeError
impl Send for GnssTimeError
impl Sync for GnssTimeError
impl Unpin for GnssTimeError
impl UnsafeUnpin for GnssTimeError
impl UnwindSafe for GnssTimeError
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