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 ==.