#[repr(u8)]pub enum Granularity {
Notimegranularity = 0,
Minutesgranularity = 1,
Secondsgranularity = 2,
Millisecondsgranularity = 3,
Microsecondsgranularity = 4,
}Variants§
Notimegranularity = 0
This indicates that the node is not currently synchronized with a UTC Time source and its clock is based on the Last Known Good UTC Time only.
Minutesgranularity = 1
This indicates the node was synchronized to an upstream source in the past, but sufficient clock drift has occurred such that the clock error is now > 5 seconds.
Secondsgranularity = 2
This indicates the node is synchronized to an upstream source using a low resolution protocol. UTC Time is accurate to ± 5 seconds.
Millisecondsgranularity = 3
This indicates the node is synchronized to an upstream source using high resolution time-synchronization protocol such as NTP, or has built-in GNSS with some amount of jitter applying its GNSS timestamp. UTC Time is accurate to ± 50 ms.
Microsecondsgranularity = 4
This indicates the node is synchronized to an upstream source using a highly precise time-synchronization protocol such as PTP, or has built-in GNSS. UTC time is accurate to ± 10 μs.
Implementations§
Trait Implementations§
Source§impl Clone for Granularity
impl Clone for Granularity
Source§fn clone(&self) -> Granularity
fn clone(&self) -> Granularity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Granularity
impl Debug for Granularity
Source§impl<'de> Deserialize<'de> for Granularity
impl<'de> Deserialize<'de> for Granularity
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>,
Source§impl From<Granularity> for u8
impl From<Granularity> for u8
Source§fn from(val: Granularity) -> Self
fn from(val: Granularity) -> Self
Source§impl PartialEq for Granularity
impl PartialEq for Granularity
Source§fn eq(&self, other: &Granularity) -> bool
fn eq(&self, other: &Granularity) -> bool
self and other values to be equal, and is used by ==.