Enum brb::deterministic_brb::Op[][src]

pub enum Op<A: Ord, S, DataTypeOp> {
    RequestValidation {
        msg: Msg<A, DataTypeOp>,
    },
    SignedValidated {
        msg: Msg<A, DataTypeOp>,
        sig: S,
    },
    ProofOfAgreement {
        msg: Msg<A, DataTypeOp>,
        proof: BTreeMap<A, S>,
    },
}

An enumeration of BRB operations

Variants

RequestValidation

Source Actor is requesting that a peer validate and sign an operation.

Fields of RequestValidation

msg: Msg<A, DataTypeOp>

The message to be validated

SignedValidated

Peer has validated and signed an operation, intended for return to Source Actor

Fields of SignedValidated

msg: Msg<A, DataTypeOp>

The validated message

sig: S

Message signature

ProofOfAgreement

Source Actor is providing proof that a supermajority of members have signed and validated an op.

Fields of ProofOfAgreement

msg: Msg<A, DataTypeOp>

the message being agreed upon

proof: BTreeMap<A, S>

A HashSet of message signatures, by Actor.

Trait Implementations

impl<A: Clone + Ord, S: Clone, DataTypeOp: Clone> Clone for Op<A, S, DataTypeOp>[src]

impl<A: Debug + Ord, S: Debug, DataTypeOp: Debug> Debug for Op<A, S, DataTypeOp>[src]

impl<'de, A: Ord, S, DataTypeOp> Deserialize<'de> for Op<A, S, DataTypeOp> where
    A: Deserialize<'de>,
    S: Deserialize<'de>,
    DataTypeOp: Deserialize<'de>, 
[src]

impl<A: Eq + Ord, S: Eq, DataTypeOp: Eq> Eq for Op<A, S, DataTypeOp>[src]

impl<A: PartialEq + Ord, S: PartialEq, DataTypeOp: PartialEq> PartialEq<Op<A, S, DataTypeOp>> for Op<A, S, DataTypeOp>[src]

impl<A: Ord, S, DataTypeOp> Serialize for Op<A, S, DataTypeOp> where
    A: Serialize,
    S: Serialize,
    DataTypeOp: Serialize
[src]

impl<A: Ord, S, DataTypeOp> StructuralEq for Op<A, S, DataTypeOp>[src]

impl<A: Ord, S, DataTypeOp> StructuralPartialEq for Op<A, S, DataTypeOp>[src]

Auto Trait Implementations

impl<A, S, DataTypeOp> RefUnwindSafe for Op<A, S, DataTypeOp> where
    A: RefUnwindSafe,
    DataTypeOp: RefUnwindSafe,
    S: RefUnwindSafe

impl<A, S, DataTypeOp> Send for Op<A, S, DataTypeOp> where
    A: Send,
    DataTypeOp: Send,
    S: Send

impl<A, S, DataTypeOp> Sync for Op<A, S, DataTypeOp> where
    A: Sync,
    DataTypeOp: Sync,
    S: Sync

impl<A, S, DataTypeOp> Unpin for Op<A, S, DataTypeOp> where
    A: Unpin,
    DataTypeOp: Unpin,
    S: Unpin

impl<A, S, DataTypeOp> UnwindSafe for Op<A, S, DataTypeOp> where
    A: RefUnwindSafe + UnwindSafe,
    DataTypeOp: UnwindSafe,
    S: RefUnwindSafe + 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> 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>,