pub struct LWWMap<K: Clone + Eq + Hash + Serialize, V: Clone + Serialize> { /* private fields */ }Expand description
A map where the most recent write for each key wins.
Implementations§
Trait Implementations§
Source§impl<K: Clone + Eq + Hash + Serialize + for<'de> Deserialize<'de>, V: Clone + Serialize + for<'de> Deserialize<'de>> CRDT for LWWMap<K, V>
impl<K: Clone + Eq + Hash + Serialize + for<'de> Deserialize<'de>, V: Clone + Serialize + for<'de> Deserialize<'de>> CRDT for LWWMap<K, V>
Source§impl<K: Clone + Clone + Eq + Hash + Serialize, V: Clone + Clone + Serialize> Clone for LWWMap<K, V>
impl<K: Clone + Clone + Eq + Hash + Serialize, V: Clone + Clone + Serialize> Clone for LWWMap<K, V>
Source§impl<K: Debug + Clone + Eq + Hash + Serialize, V: Debug + Clone + Serialize> Debug for LWWMap<K, V>
impl<K: Debug + Clone + Eq + Hash + Serialize, V: Debug + Clone + Serialize> Debug for LWWMap<K, V>
Source§impl<K: Clone + Eq + Hash + Serialize + for<'de> Deserialize<'de>, V: Clone + Serialize + for<'de> Deserialize<'de>> Default for LWWMap<K, V>
impl<K: Clone + Eq + Hash + Serialize + for<'de> Deserialize<'de>, V: Clone + Serialize + for<'de> Deserialize<'de>> Default for LWWMap<K, V>
Source§impl<'de, K, V> Deserialize<'de> for LWWMap<K, V>
impl<'de, K, V> Deserialize<'de> for LWWMap<K, V>
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
Auto Trait Implementations§
impl<K, V> Freeze for LWWMap<K, V>
impl<K, V> RefUnwindSafe for LWWMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for LWWMap<K, V>
impl<K, V> Sync for LWWMap<K, V>
impl<K, V> Unpin for LWWMap<K, V>
impl<K, V> UnsafeUnpin for LWWMap<K, V>
impl<K, V> UnwindSafe for LWWMap<K, V>where
K: UnwindSafe,
V: 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