Enum ntp_proto::NtpLeapIndicator
source · pub enum NtpLeapIndicator {
NoWarning,
Leap61,
Leap59,
Unknown,
}Variants§
Implementations§
source§impl NtpLeapIndicator
impl NtpLeapIndicator
pub fn is_synchronized(&self) -> bool
Trait Implementations§
source§impl Clone for NtpLeapIndicator
impl Clone for NtpLeapIndicator
source§fn clone(&self) -> NtpLeapIndicator
fn clone(&self) -> NtpLeapIndicator
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 NtpLeapIndicator
impl Debug for NtpLeapIndicator
source§impl<'de> Deserialize<'de> for NtpLeapIndicator
impl<'de> Deserialize<'de> for NtpLeapIndicator
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<NtpLeapIndicator> for NtpLeapIndicator
impl PartialEq<NtpLeapIndicator> for NtpLeapIndicator
source§fn eq(&self, other: &NtpLeapIndicator) -> bool
fn eq(&self, other: &NtpLeapIndicator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for NtpLeapIndicator
impl Serialize for NtpLeapIndicator
impl Copy for NtpLeapIndicator
impl Eq for NtpLeapIndicator
impl StructuralEq for NtpLeapIndicator
impl StructuralPartialEq for NtpLeapIndicator
Auto Trait Implementations§
impl RefUnwindSafe for NtpLeapIndicator
impl Send for NtpLeapIndicator
impl Sync for NtpLeapIndicator
impl Unpin for NtpLeapIndicator
impl UnwindSafe for NtpLeapIndicator
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