#[non_exhaustive]pub enum LeapExtendError {
NotStrictlyAscending,
NonUnitIncrement,
BufferFull,
}Expand description
Error returned by RuntimeLeapSeconds::try_extend.
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.
NotStrictlyAscending
The new entry’s tai_nanos is not strictly greater than the last
existing entry — the table would become unsorted.
NonUnitIncrement
The new entry’s tai_minus_utc is not exactly one more than the last
existing entry — every leap second must increment the counter by 1.
BufferFull
The runtime buffer is full; no more entries can be appended.
Trait Implementations§
Source§impl Clone for LeapExtendError
impl Clone for LeapExtendError
Source§fn clone(&self) -> LeapExtendError
fn clone(&self) -> LeapExtendError
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 LeapExtendError
impl Debug for LeapExtendError
Source§impl Display for LeapExtendError
impl Display for LeapExtendError
Source§impl Error for LeapExtendError
Available on crate feature std only.
impl Error for LeapExtendError
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 Hash for LeapExtendError
impl Hash for LeapExtendError
Source§impl PartialEq for LeapExtendError
impl PartialEq for LeapExtendError
impl Copy for LeapExtendError
impl Eq for LeapExtendError
impl StructuralPartialEq for LeapExtendError
Auto Trait Implementations§
impl Freeze for LeapExtendError
impl RefUnwindSafe for LeapExtendError
impl Send for LeapExtendError
impl Sync for LeapExtendError
impl Unpin for LeapExtendError
impl UnsafeUnpin for LeapExtendError
impl UnwindSafe for LeapExtendError
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