pub struct LwwSnapshot<T> {
pub value: T,
pub stamp: Stamp,
pub wall_ts: u64,
pub agent_id: String,
pub event_hash: String,
}Expand description
Serializable representation of a single LWW register with its clock.
Preserves the full tie-breaking chain for correct lattice merge.
Fields§
§value: T§stamp: Stamp§wall_ts: u64§agent_id: String§event_hash: StringTrait Implementations§
Source§impl<T: Clone> Clone for LwwSnapshot<T>
impl<T: Clone> Clone for LwwSnapshot<T>
Source§fn clone(&self) -> LwwSnapshot<T>
fn clone(&self) -> LwwSnapshot<T>
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<T: Debug> Debug for LwwSnapshot<T>
impl<T: Debug> Debug for LwwSnapshot<T>
Source§impl<'de, T> Deserialize<'de> for LwwSnapshot<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for LwwSnapshot<T>where
T: Deserialize<'de>,
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<T: Clone> From<&LwwRegister<T>> for LwwSnapshot<T>
impl<T: Clone> From<&LwwRegister<T>> for LwwSnapshot<T>
Source§fn from(reg: &LwwRegister<T>) -> Self
fn from(reg: &LwwRegister<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Clone> From<&LwwSnapshot<T>> for LwwRegister<T>
impl<T: Clone> From<&LwwSnapshot<T>> for LwwRegister<T>
Source§fn from(snap: &LwwSnapshot<T>) -> Self
fn from(snap: &LwwSnapshot<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for LwwSnapshot<T>
impl<T: PartialEq> PartialEq for LwwSnapshot<T>
Source§impl<T> Serialize for LwwSnapshot<T>where
T: Serialize,
impl<T> Serialize for LwwSnapshot<T>where
T: Serialize,
impl<T: Eq> Eq for LwwSnapshot<T>
impl<T> StructuralPartialEq for LwwSnapshot<T>
Auto Trait Implementations§
impl<T> Freeze for LwwSnapshot<T>where
T: Freeze,
impl<T> RefUnwindSafe for LwwSnapshot<T>where
T: RefUnwindSafe,
impl<T> Send for LwwSnapshot<T>where
T: Send,
impl<T> Sync for LwwSnapshot<T>where
T: Sync,
impl<T> Unpin for LwwSnapshot<T>where
T: Unpin,
impl<T> UnsafeUnpin for LwwSnapshot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LwwSnapshot<T>where
T: UnwindSafe,
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> 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.