Enum statime::config::ClockAccuracy
source · pub enum ClockAccuracy {
Show 30 variants
Reserved,
PS1,
PS2_5,
PS10,
PS25,
PS100,
PS250,
NS1,
NS2_5,
NS10,
NS25,
NS100,
NS250,
US1,
US2_5,
US10,
US25,
US100,
US250,
MS1,
MS2_5,
MS10,
MS25,
MS100,
MS250,
S1,
S10,
SGT10,
ProfileSpecific(u8),
Unknown,
}
Expand description
How accurate the underlying clock device is expected to be when not synchronized.
Variants§
Reserved
Reserved
PS1
Accurate within 1 ps
PS2_5
Accurate within 2.5 ps
PS10
Accurate within 10 ps
PS25
Accurate within 25 ps
PS100
Accurate within 100 ps
PS250
Accurate within 250 ps
NS1
Accurate within 1 ns
NS2_5
Accurate within 2.5 ns
NS10
Accurate within 10 ns
NS25
Accurate within 25 ns
NS100
Accurate within 100 ns
NS250
Accurate within 250 ns
US1
Accurate within 1 us
US2_5
Accurate within 2.5 us
US10
Accurate within 10 us
US25
Accurate within 25 us
US100
Accurate within 100 us
US250
Accurate within 250 us
MS1
Accurate within 1 ms
MS2_5
Accurate within 2.5 ms
MS10
Accurate within 10 ms
MS25
Accurate within 25 ms
MS100
Accurate within 100 ms
MS250
Accurate within 250 ms
S1
Accurate within 1 s
S10
Accurate within 10 s
SGT10
Accurate within >10 s
ProfileSpecific(u8)
Specific to a profile
Unknown
Accuracy is unknown
Implementations§
source§impl ClockAccuracy
impl ClockAccuracy
sourcepub fn to_primitive(self) -> u8
pub fn to_primitive(self) -> u8
Converts enum to u8 literals
Trait Implementations§
source§impl Clone for ClockAccuracy
impl Clone for ClockAccuracy
source§fn clone(&self) -> ClockAccuracy
fn clone(&self) -> ClockAccuracy
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 ClockAccuracy
impl Debug for ClockAccuracy
source§impl Default for ClockAccuracy
impl Default for ClockAccuracy
source§impl<'de> Deserialize<'de> for ClockAccuracy
impl<'de> Deserialize<'de> for ClockAccuracy
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 for ClockAccuracy
impl PartialEq for ClockAccuracy
source§fn eq(&self, other: &ClockAccuracy) -> bool
fn eq(&self, other: &ClockAccuracy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ClockAccuracy
impl Serialize for ClockAccuracy
impl Copy for ClockAccuracy
impl Eq for ClockAccuracy
impl StructuralPartialEq for ClockAccuracy
Auto Trait Implementations§
impl Freeze for ClockAccuracy
impl RefUnwindSafe for ClockAccuracy
impl Send for ClockAccuracy
impl Sync for ClockAccuracy
impl Unpin for ClockAccuracy
impl UnwindSafe for ClockAccuracy
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.