pub struct LWWWriteDelta<T: Ord + Clone, K: Ord + Clone> {
pub timestamp: u64,
pub replica_id: K,
pub value: T,
}Expand description
Delta for LWW Register write operation
Fields§
§timestamp: u64§replica_id: K§value: TTrait Implementations§
Source§impl<T: Clone + Ord + Clone, K: Clone + Ord + Clone> Clone for LWWWriteDelta<T, K>
impl<T: Clone + Ord + Clone, K: Clone + Ord + Clone> Clone for LWWWriteDelta<T, K>
Source§fn clone(&self) -> LWWWriteDelta<T, K>
fn clone(&self) -> LWWWriteDelta<T, K>
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<'de, T, K> Deserialize<'de> for LWWWriteDelta<T, K>
impl<'de, T, K> Deserialize<'de> for LWWWriteDelta<T, K>
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: Ord + Clone, K: Ord + Clone> Lattice for LWWWriteDelta<T, K>
impl<T: Ord + Clone, K: Ord + Clone> Lattice for LWWWriteDelta<T, K>
Source§fn join(&self, other: &Self) -> Self
fn join(&self, other: &Self) -> Self
Join operation (least upper bound)
Must be commutative, associative, and idempotent
§fn partial_cmp_lattice(&self, other: &Self) -> Option<Ordering>
fn partial_cmp_lattice(&self, other: &Self) -> Option<Ordering>
Partial order derived from join: a ≤ b iff a ⊔ b = b
§fn join_assign(&mut self, other: &Self)
fn join_assign(&mut self, other: &Self)
Join-assign: self = self ⊔ other
Source§impl<T: PartialEq + Ord + Clone, K: PartialEq + Ord + Clone> PartialEq for LWWWriteDelta<T, K>
impl<T: PartialEq + Ord + Clone, K: PartialEq + Ord + Clone> PartialEq for LWWWriteDelta<T, K>
Source§impl<T, K> Serialize for LWWWriteDelta<T, K>
impl<T, K> Serialize for LWWWriteDelta<T, K>
impl<T: Eq + Ord + Clone, K: Eq + Ord + Clone> Eq for LWWWriteDelta<T, K>
impl<T: Ord + Clone, K: Ord + Clone> StructuralPartialEq for LWWWriteDelta<T, K>
Auto Trait Implementations§
impl<T, K> Freeze for LWWWriteDelta<T, K>
impl<T, K> RefUnwindSafe for LWWWriteDelta<T, K>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, K> Send for LWWWriteDelta<T, K>
impl<T, K> Sync for LWWWriteDelta<T, K>
impl<T, K> Unpin for LWWWriteDelta<T, K>
impl<T, K> UnwindSafe for LWWWriteDelta<T, K>where
K: UnwindSafe,
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