Struct brb_dt_orswot::BRBOrswot[][src]

pub struct BRBOrswot<A: Hash + Ord + Clone, M: Clone + Eq + Hash> { /* fields omitted */ }

BRB wrapper for an Orswot CRDT

Implementations

impl<A: Hash + Ord + Clone + Debug, M: Clone + Eq + Hash> BRBOrswot<A, M>[src]

pub fn add(&self, member: M) -> Op<M, A>[src]

Generates an Orswot Add operation. (but does not apply it)

pub fn rm(&self, member: M) -> Op<M, A>[src]

Generates an Orswot Rm operation. (but does not apply it)

pub fn contains(&self, member: &M) -> bool[src]

Check if the set contains a member

pub fn actor(&self) -> &A[src]

Retrieves the BRB actor

pub fn orswot(&self) -> &Orswot<M, A>[src]

Retrieves the underlying orswot

pub fn read(&self) -> HashSet<M>[src]

Read from the underlying orswot

Trait Implementations

impl<A: Hash + Ord + Clone + Debug + Serialize + 'static, M: Clone + Eq + Hash + Debug + Serialize> BRBDataType<A> for BRBOrswot<A, M>[src]

type Op = Op<M, A>

The set of ops this data type accepts

type ValidationError = ValidationError<<Orswot<M, A> as CmRDT>::Validation>

A validation error specific to this data type.

impl<A: Clone + Hash + Ord, M: Clone + Eq + Hash> Clone for BRBOrswot<A, M>[src]

impl<A: Debug + Hash + Ord + Clone, M: Debug + Clone + Eq + Hash> Debug for BRBOrswot<A, M>[src]

impl<A: Eq + Hash + Ord + Clone, M: Eq + Clone + Hash> Eq for BRBOrswot<A, M>[src]

impl<A: PartialEq + Hash + Ord + Clone, M: PartialEq + Clone + Eq + Hash> PartialEq<BRBOrswot<A, M>> for BRBOrswot<A, M>[src]

impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> Serialize for BRBOrswot<A, M> where
    A: Serialize,
    M: Serialize
[src]

impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> StructuralEq for BRBOrswot<A, M>[src]

impl<A: Hash + Ord + Clone, M: Clone + Eq + Hash> StructuralPartialEq for BRBOrswot<A, M>[src]

Auto Trait Implementations

impl<A, M> RefUnwindSafe for BRBOrswot<A, M> where
    A: RefUnwindSafe,
    M: RefUnwindSafe
[src]

impl<A, M> Send for BRBOrswot<A, M> where
    A: Send,
    M: Send
[src]

impl<A, M> Sync for BRBOrswot<A, M> where
    A: Sync,
    M: Sync
[src]

impl<A, M> Unpin for BRBOrswot<A, M> where
    A: Unpin,
    M: Unpin
[src]

impl<A, M> UnwindSafe for BRBOrswot<A, M> where
    A: RefUnwindSafe + UnwindSafe,
    M: UnwindSafe
[src]

Blanket Implementations

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

impl<T> BRBDT for T where
    T: BRBDataType<Actor>, 
[src]

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,