#[non_exhaustive]pub enum GnssTimeError {
Overflow,
InvalidInput(&'static str),
LeapSecondsRequired,
}Expand description
Errors returned by fallible gnss-time operations.
GnssTimeError is used throughout the crate for arithmetic overflow,
invalid inputs, and missing auxiliary data (e.g. leap seconds).
This type is intentionally #[non_exhaustive] to allow new error cases
without breaking semver compatibility.
§Usage
use gnss_time::GnssTimeError;
fn example() -> Result<(), GnssTimeError> {
Err(GnssTimeError::Overflow)
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Overflow
Arithmetic overflow occurred during nanosecond-based computations.
This indicates that an operation exceeded the representable range of
the underlying i64 nanosecond storage.
InvalidInput(&'static str)
The provided input value is invalid for the requested operation.
The attached string provides a short static description of the issue.
LeapSecondsRequired
The operation requires leap-second information that is not available.
This is typically required for conversions between UTC-based and atomic time scales (e.g. GPS ↔ UTC, GLONASS ↔ GPS).
Trait Implementations§
Source§impl Clone for GnssTimeError
impl Clone for GnssTimeError
Source§fn clone(&self) -> GnssTimeError
fn clone(&self) -> GnssTimeError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
std only.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()
Source§impl Format for GnssTimeError
Available on crate feature defmt only.
impl Format for GnssTimeError
defmt only.