#[repr(u8)]pub enum LeapIndicator {
NoWarning = 0,
LastMinute61 = 1,
LastMinute59 = 2,
Unsynchronized = 3,
}Expand description
#[repr(u8)] with the RFC 5905 wire values as discriminants, so the
round-trip to and from the wire is a cast in one direction and a total table
lookup in the other.
Variants§
Trait Implementations§
Source§impl Clone for LeapIndicator
impl Clone for LeapIndicator
impl Copy for LeapIndicator
Source§impl Debug for LeapIndicator
impl Debug for LeapIndicator
impl Eq for LeapIndicator
Source§impl PartialEq for LeapIndicator
impl PartialEq 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