Enum crdts::map::Op [−][src]
pub enum Op<K: Ord, V: Val<A>, A: Ord> { Rm { clock: VClock<A>, keyset: BTreeSet<K>, }, Up { dot: Dot<A>, key: K, op: V::Op, }, }
Operations which can be applied to the Map CRDT
Variants
Remove a key from the map
Fields of Rm
Update an entry in the map
Fields of Up
Trait Implementations
impl<K: Clone + Ord, V: Clone + Val<A>, A: Clone + Ord> Clone for Op<K, V, A> where
V::Op: Clone,
[src]
V::Op: Clone,
impl<K: Debug + Ord, V: Debug + Val<A>, A: Debug + Ord> Debug for Op<K, V, A> where
V::Op: Debug,
[src]
V::Op: Debug,
impl<'de, K: Ord, V: Val<A>, A: Ord> Deserialize<'de> for Op<K, V, A> where
K: Deserialize<'de>,
A: Deserialize<'de>,
V::Op: Deserialize<'de>,
[src]
K: Deserialize<'de>,
A: Deserialize<'de>,
V::Op: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<K: Eq + Ord, V: Eq + Val<A>, A: Eq + Ord> Eq for Op<K, V, A> where
V::Op: Eq,
[src]
V::Op: Eq,
impl<K: PartialEq + Ord, V: PartialEq + Val<A>, A: PartialEq + Ord> PartialEq<Op<K, V, A>> for Op<K, V, A> where
V::Op: PartialEq,
[src]
V::Op: PartialEq,
impl<K: Ord, V: Val<A>, A: Ord> Serialize for Op<K, V, A> where
K: Serialize,
A: Serialize,
V::Op: Serialize,
[src]
K: Serialize,
A: Serialize,
V::Op: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<K: Ord, V: Val<A>, A: Ord> StructuralEq for Op<K, V, A>
[src]
impl<K: Ord, V: Val<A>, A: Ord> StructuralPartialEq for Op<K, V, A>
[src]
Auto Trait Implementations
impl<K, V, A> RefUnwindSafe for Op<K, V, A> where
A: RefUnwindSafe,
K: RefUnwindSafe,
<V as CmRDT>::Op: RefUnwindSafe,
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,
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,
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,
A: Unpin,
K: Unpin,
<V as CmRDT>::Op: Unpin,
impl<K, V, A> UnwindSafe for Op<K, V, A> where
A: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
<V as CmRDT>::Op: UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
<V as CmRDT>::Op: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,