Enum noosphere_core::data::map::Op
source · pub enum Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,{
Rm {
clock: VClock<A>,
keyset: BTreeSet<K, Global>,
},
Up {
dot: Dot<A>,
key: K,
op: <V as CmRDT>::Op,
},
}Expand description
Operations which can be applied to the Map CRDT
Variants
Rm
Fields
clock: VClock<A>The clock under which we will perform this remove
Remove a key from the map
Up
Fields
dot: Dot<A>Actors version at the time of the update
Update an entry in the map
Trait Implementations
sourceimpl<K, V, A> Clone for Op<K, V, A>where
K: Clone + Ord,
V: Clone + Val<A>,
A: Clone + Ord,
<V as CmRDT>::Op: Clone,
impl<K, V, A> Clone for Op<K, V, A>where
K: Clone + Ord,
V: Clone + Val<A>,
A: Clone + Ord,
<V as CmRDT>::Op: Clone,
sourceimpl<K, V, A> Debug for Op<K, V, A>where
K: Debug + Ord,
V: Debug + Val<A>,
A: Debug + Ord,
<V as CmRDT>::Op: Debug,
impl<K, V, A> Debug for Op<K, V, A>where
K: Debug + Ord,
V: Debug + Val<A>,
A: Debug + Ord,
<V as CmRDT>::Op: Debug,
sourceimpl<'de, K, V, A> Deserialize<'de> for Op<K, V, A>where
K: Ord + Deserialize<'de>,
V: Val<A>,
A: Ord + Deserialize<'de>,
<V as CmRDT>::Op: Deserialize<'de>,
impl<'de, K, V, A> Deserialize<'de> for Op<K, V, A>where
K: Ord + Deserialize<'de>,
V: Val<A>,
A: Ord + Deserialize<'de>,
<V as CmRDT>::Op: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Op<K, V, A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Op<K, V, A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<K, V, A> PartialEq<Op<K, V, A>> for Op<K, V, A>where
K: PartialEq<K> + Ord,
V: PartialEq<V> + Val<A>,
A: PartialEq<A> + Ord,
<V as CmRDT>::Op: PartialEq<<V as CmRDT>::Op>,
impl<K, V, A> PartialEq<Op<K, V, A>> for Op<K, V, A>where
K: PartialEq<K> + Ord,
V: PartialEq<V> + Val<A>,
A: PartialEq<A> + Ord,
<V as CmRDT>::Op: PartialEq<<V as CmRDT>::Op>,
sourceimpl<K, V, A> Serialize for Op<K, V, A>where
K: Ord + Serialize,
V: Val<A>,
A: Ord + Serialize,
<V as CmRDT>::Op: Serialize,
impl<K, V, A> Serialize for Op<K, V, A>where
K: Ord + Serialize,
V: Val<A>,
A: Ord + Serialize,
<V as CmRDT>::Op: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<K, V, A> Eq for Op<K, V, A>where
K: Eq + Ord,
V: Eq + Val<A>,
A: Eq + Ord,
<V as CmRDT>::Op: Eq,
impl<K, V, A> StructuralEq for Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,
impl<K, V, A> StructuralPartialEq for Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,
Auto Trait Implementations
impl<K, V, A> RefUnwindSafe for Op<K, V, A>where
A: RefUnwindSafe,
K: RefUnwindSafe,
<V as CmRDT>::Op: RefUnwindSafe,
impl<K, V, A> Send for Op<K, V, A>where
A: Send,
K: Send,
<V as CmRDT>::Op: Send,
impl<K, V, A> Sync for Op<K, V, A>where
A: Sync,
K: Sync,
<V as CmRDT>::Op: Sync,
impl<K, V, A> Unpin for Op<K, V, A>where
A: Unpin,
K: Unpin,
<V as CmRDT>::Op: Unpin,
impl<K, V, A> UnwindSafe for Op<K, V, A>where
A: UnwindSafe + RefUnwindSafe,
K: UnwindSafe + RefUnwindSafe,
<V as CmRDT>::Op: UnwindSafe,
Blanket Implementations
sourceimpl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
fn jwt_base64_encode(&self) -> Result<String, Error>
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more