pub enum TimestampKind {
Monotonic,
WallClock,
}Expand description
Kind of timestamp — monotonic vs wall-clock.
Variants§
Monotonic
Monotonic — safe for ordering, not for cross-process correlation.
WallClock
Wall-clock — safe for cross-process correlation, subject to NTP.
Trait Implementations§
Source§impl Clone for TimestampKind
impl Clone for TimestampKind
Source§fn clone(&self) -> TimestampKind
fn clone(&self) -> TimestampKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampKind
Source§impl Debug for TimestampKind
impl Debug for TimestampKind
Source§impl<'de> Deserialize<'de> for TimestampKind
impl<'de> Deserialize<'de> for TimestampKind
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
impl Eq for TimestampKind
Source§impl Hash for TimestampKind
impl Hash for TimestampKind
Source§impl PartialEq for TimestampKind
impl PartialEq for TimestampKind
Source§impl Serialize for TimestampKind
impl Serialize for TimestampKind
impl StructuralPartialEq for TimestampKind
Auto Trait Implementations§
impl Freeze for TimestampKind
impl RefUnwindSafe for TimestampKind
impl Send for TimestampKind
impl Sync for TimestampKind
impl Unpin for TimestampKind
impl UnsafeUnpin for TimestampKind
impl UnwindSafe for TimestampKind
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