[][src]Enum crdts::map::Op

pub enum Op<K: Key, V: Val<A>, A: Actor> {
    Nop,
    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

Nop

No change to the CRDT

Rm

Remove a key from the map

Fields of Rm

clock: VClock<A>

The clock under which we will perform this remove

keyset: BTreeSet<K>

Key to remove

Up

Update an entry in the map

Fields of Up

dot: Dot<A>

Actors version at the time of the update

key: K

Key of the value to update

op: V::Op

The operation to apply on the value under key

Trait Implementations

impl<K: Clone + Key, V: Clone + Val<A>, A: Clone + Actor> Clone for Op<K, V, A> where
    V::Op: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<K: Eq + Key, V: Eq + Val<A>, A: Eq + Actor> Eq for Op<K, V, A> where
    V::Op: Eq
[src]

impl<K: PartialEq + Key, V: PartialEq + Val<A>, A: PartialEq + Actor> PartialEq<Op<K, V, A>> for Op<K, V, A> where
    V::Op: PartialEq
[src]

impl<K: Debug + Key, V: Debug + Val<A>, A: Debug + Actor> Debug for Op<K, V, A> where
    V::Op: Debug
[src]

impl<K: Key, V: Val<A>, A: Actor> Serialize for Op<K, V, A> where
    K: Serialize,
    A: Serialize,
    V::Op: Serialize
[src]

impl<'de, K: Key, V: Val<A>, A: Actor> Deserialize<'de> for Op<K, V, A> where
    K: Deserialize<'de>,
    A: Deserialize<'de>,
    V::Op: Deserialize<'de>, 
[src]

Auto Trait Implementations

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> Send for Op<K, V, A> where
    A: Send,
    K: Send,
    <V as CmRDT>::Op: Send

impl<K, V, A> UnwindSafe for Op<K, V, A> where
    A: RefUnwindSafe + UnwindSafe,
    K: RefUnwindSafe + UnwindSafe,
    <V as CmRDT>::Op: UnwindSafe

impl<K, V, A> RefUnwindSafe for Op<K, V, A> where
    A: RefUnwindSafe,
    K: RefUnwindSafe,
    <V as CmRDT>::Op: RefUnwindSafe

Blanket Implementations

impl<T> Val for T where
    T: PartialEq<T> + Clone + Debug
[src]

impl<T> Val for T where
    T: Clone + Debug
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]