#[repr(u8)]pub enum LeapIndicator {
NoWarning = 0,
AddOne = 1,
SubOne = 2,
Unknown = 3,
}Expand description
A 2-bit integer warning of an impending leap second to be inserted or deleted in the last minute of the current month with values defined below:
Note that this field is packed in the actual header.
As the only constructors are via associated constants, it should be impossible to create an
invalid LeapIndicator.
Variants§
NoWarning = 0
No leap required.
AddOne = 1
Last minute of the day has 61 seconds.
SubOne = 2
Last minute of the day has 59 seconds.
Unknown = 3
Clock unsynchronized.
Trait Implementations§
Source§impl Clone for LeapIndicator
impl Clone for LeapIndicator
Source§fn clone(&self) -> LeapIndicator
fn clone(&self) -> LeapIndicator
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 LeapIndicator
impl Debug for LeapIndicator
Source§impl Default for LeapIndicator
impl Default for LeapIndicator
Source§fn default() -> LeapIndicator
fn default() -> LeapIndicator
Returns the “default value” for a type. Read more
Source§impl Hash for LeapIndicator
impl Hash for LeapIndicator
Source§impl PartialEq for LeapIndicator
impl PartialEq for LeapIndicator
Source§impl TryFrom<u8> for LeapIndicator
impl TryFrom<u8> for LeapIndicator
impl Copy for LeapIndicator
impl Eq for LeapIndicator
impl StructuralPartialEq for LeapIndicator
Auto Trait Implementations§
impl Freeze for LeapIndicator
impl RefUnwindSafe for LeapIndicator
impl Send for LeapIndicator
impl Sync for LeapIndicator
impl Unpin for LeapIndicator
impl UnsafeUnpin for LeapIndicator
impl UnwindSafe for LeapIndicator
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