pub struct LocalTimestamp {
pub sequence: u64,
pub wall_clock: DateTime<Utc>,
}Expand description
Local timestamp - only meaningful within a single Resonator’s timeline
Fields§
§sequence: u64Local monotonic counter
wall_clock: DateTime<Utc>Wall clock time (for human-readable debugging)
NOT used for causal ordering - only for debugging and logging.
Implementations§
Source§impl LocalTimestamp
impl LocalTimestamp
pub fn now() -> Self
pub fn with_sequence(sequence: u64) -> Self
Trait Implementations§
Source§impl Clone for LocalTimestamp
impl Clone for LocalTimestamp
Source§fn clone(&self) -> LocalTimestamp
fn clone(&self) -> LocalTimestamp
Returns a duplicate 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 LocalTimestamp
impl Debug for LocalTimestamp
Source§impl Default for LocalTimestamp
impl Default for LocalTimestamp
Source§impl<'de> Deserialize<'de> for LocalTimestamp
impl<'de> Deserialize<'de> for LocalTimestamp
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 Ord for LocalTimestamp
impl Ord for LocalTimestamp
Source§fn cmp(&self, other: &LocalTimestamp) -> Ordering
fn cmp(&self, other: &LocalTimestamp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LocalTimestamp
impl PartialEq for LocalTimestamp
Source§impl PartialOrd for LocalTimestamp
impl PartialOrd for LocalTimestamp
Source§impl Serialize for LocalTimestamp
impl Serialize for LocalTimestamp
impl Copy for LocalTimestamp
impl Eq for LocalTimestamp
impl StructuralPartialEq for LocalTimestamp
Auto Trait Implementations§
impl Freeze for LocalTimestamp
impl RefUnwindSafe for LocalTimestamp
impl Send for LocalTimestamp
impl Sync for LocalTimestamp
impl Unpin for LocalTimestamp
impl UnwindSafe for LocalTimestamp
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.