Enum rsntp::LeapIndicator
source · pub enum LeapIndicator {
NoWarning,
LastMinuteHas61Seconds,
LastMinuteHas59Seconds,
AlarmCondition,
}
Expand description
Leap indicator
Indicator of an impending leap second to be inserted/deleted in the last minute of the current day.
The warning is set before 23:59 on the day of insertion and reset after 00:00 on the following day. This causes the number of seconds (rollover interval) in the day of insertion to be increased or decreased by one.
Variants§
NoWarning
No warning, i.e. no leap second
LastMinuteHas61Seconds
The last minute of the day has 61 seconds
LastMinuteHas59Seconds
The last minute of the day has 59 seconds
AlarmCondition
Alarm condition, the clock is not synchronized
Trait Implementations§
source§impl Clone for LeapIndicator
impl Clone for LeapIndicator
source§fn clone(&self) -> LeapIndicator
fn clone(&self) -> LeapIndicator
Returns a copy 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 Hash for LeapIndicator
impl Hash for LeapIndicator
source§impl PartialEq for LeapIndicator
impl PartialEq for LeapIndicator
source§fn eq(&self, other: &LeapIndicator) -> bool
fn eq(&self, other: &LeapIndicator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LeapIndicator
impl Eq for LeapIndicator
impl StructuralPartialEq for LeapIndicator
Auto Trait Implementations§
impl RefUnwindSafe for LeapIndicator
impl Send for LeapIndicator
impl Sync for LeapIndicator
impl Unpin 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