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>, }, Delivered { msg: Msg<A, DataTypeOp>, }, }
Expand description
An enumeration of BRB operations
Variants
Source Actor is requesting that a peer validate and sign an operation.
Show fields
Fields of RequestValidation
msg: Msg<A, DataTypeOp>
The message to be validated
Peer has validated and signed an operation, intended for return to Source Actor
Show fields
Fields of SignedValidated
Source Actor is providing proof that a supermajority of members have signed and validated an op.
Show fields
After a node receives ProofOfAgreement, it responds to the initiator with a Delivered packet to let it know that this message was successfully delivered.
Show fields
Fields of Delivered
msg: Msg<A, DataTypeOp>
the message that was delivered
Trait Implementations
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<'de, A: Ord, S, DataTypeOp> Deserialize<'de> for Op<A, S, DataTypeOp> where
A: Deserialize<'de>,
S: Deserialize<'de>,
DataTypeOp: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<A, S, DataTypeOp> RefUnwindSafe for Op<A, S, DataTypeOp> where
A: RefUnwindSafe,
DataTypeOp: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, S, DataTypeOp> UnwindSafe for Op<A, S, DataTypeOp> where
A: RefUnwindSafe + UnwindSafe,
DataTypeOp: UnwindSafe,
S: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V