[][src]Enum crdts::lseq::Op

pub enum Op<T, A: Actor> {
    Insert {
        id: Identifier<A>,
        dot: Dot<A>,
        val: T,
    },
    Delete {
        remote: Dot<A>,
        id: Identifier<A>,
        dot: Dot<A>,
    },
}

Operations that can be performed on an LSeq tree

Variants

Insert

Insert an element

Fields of Insert

id: Identifier<A>

Identifier to insert at

dot: Dot<A>

clock of site that issued insertion

val: T

Element to insert

Delete

Delete an element

Fields of Delete

remote: Dot<A>

The original clock information of the insertion we're removing

id: Identifier<A>

Identifier to remove

dot: Dot<A>

id of site that issued delete

Implementations

impl<T, A: Actor> Op<T, A>[src]

pub fn dot(&self) -> &Dot<A>[src]

Return the Dot originating the operation

pub fn id(&self) -> &Identifier<A>[src]

Return the Identifier contained in the operation

Trait Implementations

impl<T: Clone, A: Clone + Actor> Clone for Op<T, A>[src]

impl<T: Debug, A: Debug + Actor> Debug for Op<T, A>[src]

impl<'de, T, A: Actor> Deserialize<'de> for Op<T, A> where
    T: Deserialize<'de>,
    A: Deserialize<'de>, 
[src]

impl<T: Eq, A: Eq + Actor> Eq for Op<T, A>[src]

impl<T: Hash, A: Hash + Actor> Hash for Op<T, A>[src]

impl<T: PartialEq, A: PartialEq + Actor> PartialEq<Op<T, A>> for Op<T, A>[src]

impl<T: PartialOrd, A: PartialOrd + Actor> PartialOrd<Op<T, A>> for Op<T, A>[src]

impl<T, A: Actor> Serialize for Op<T, A> where
    T: Serialize,
    A: Serialize
[src]

impl<T, A: Actor> StructuralEq for Op<T, A>[src]

impl<T, A: Actor> StructuralPartialEq for Op<T, A>[src]

Auto Trait Implementations

impl<T, A> RefUnwindSafe for Op<T, A> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, A> Send for Op<T, A> where
    A: Send,
    T: Send

impl<T, A> Sync for Op<T, A> where
    A: Sync,
    T: Sync

impl<T, A> Unpin for Op<T, A> where
    A: Unpin,
    T: Unpin

impl<T, A> UnwindSafe for Op<T, A> where
    A: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

impl<T> Member for T where
    T: Clone + Eq + Hash
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,