pub enum Error {
Overflow,
InvalidDate,
InvalidTime,
UtcUndefined,
LeapTableExpired,
Ut1Undefined,
Ut1TableExpired,
Parse,
BufferTooSmall,
Codec,
DstGap,
Unsupported,
}Expand description
Recoverable failure from a conversion, parse, or arithmetic operation.
Variants§
Overflow
i128 nanosecond arithmetic overflowed.
InvalidDate
Year, month, or day is not a valid Gregorian calendar date.
InvalidTime
Hour, minute, second, or nanosecond is out of range (UTC leap: second may be 60).
UtcUndefined
The instant is before UTC was defined (1960-01-01).
LeapTableExpired
Leap-second table does not cover this future UTC date with certainty.
Ut1Undefined
UT1/DUT1 is not defined before the modern UTC era (1972-01-01).
Ut1TableExpired
DUT1 table does not cover this UTC date.
Parse
ISO 8601 / RFC 3339 text could not be parsed.
BufferTooSmall
Buffer was too small to hold the formatted timestamp.
Codec
CCSDS field length or payload is illegal.
DstGap
Local civil time falls in a DST spring-forward gap.
Unsupported
Requested feature data (zone, body) is not in this build.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
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()