pub enum TimeClockType {
System,
Monotaonic,
Custom(String),
}Variants§
System
The value “system” represents a clock that uses system time, commonly measured against a chosen or well-known epoch
Monotaonic
A clock using monotonic time is generally guaranteed to never go backwards. The value “monotonic” represents such a clock.
When using the “monotonic” clock type, the epoch field MUST have the value “unknown”.
Custom(String)
Trait Implementations§
Source§impl Clone for TimeClockType
impl Clone for TimeClockType
Source§fn clone(&self) -> TimeClockType
fn clone(&self) -> TimeClockType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeClockType
impl Debug for TimeClockType
Source§impl Default for TimeClockType
impl Default for TimeClockType
Source§fn default() -> TimeClockType
fn default() -> TimeClockType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeClockType
impl<'de> Deserialize<'de> for TimeClockType
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 TimeClockType
impl PartialEq for TimeClockType
Source§impl Serialize for TimeClockType
impl Serialize for TimeClockType
impl Eq for TimeClockType
impl StructuralPartialEq for TimeClockType
Auto Trait Implementations§
impl Freeze for TimeClockType
impl RefUnwindSafe for TimeClockType
impl Send for TimeClockType
impl Sync for TimeClockType
impl Unpin for TimeClockType
impl UnwindSafe for TimeClockType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)