Enum brb::error::ValidationError [−][src]
pub enum ValidationError<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> {}Show variants
PacketSourceIsNotDot { from: A, dot: Dot<A>, }, MsgDotNotTheNextDot { msg_dot: Dot<A>, expected_dot: Dot<A>, }, SourceAlreadyHasPendingMsg { msg_dot: Dot<A>, next_deliver_dot: Dot<A>, }, MessageFromDifferentGeneration { msg_gen: Generation, gen: Generation, }, SourceIsNotVotingMember { from: A, members: BTreeSet<A>, }, DataTypeFailedValidation(V), InvalidSignature, SignedValidatedForPacketWeDidNotRequest, MsgDotNotNextDotToBeDelivered { msg_dot: Dot<A>, expected_dot: Dot<A>, }, NotEnoughSignaturesToFormQuorum, ProofContainsSignaturesFromNonMembers, ProofContainsInvalidSignatures, DeliveredForPacketWeDidNotInitiate, DeliveredForPacketWeAreNotWaitingOn, PhantomSig(PhantomData<S>),
Expand description
Enumerates types of packet validation errors.
Note that all of these errors are generated within the BRB module itself with the exception of DataTypeFailedValidation, which occurs when a BRBDataType validation fails according to its own internal logic.
Variants
The actor who sent this packet is different from the actor who incremented the dot
Show fields
Fields of PacketSourceIsNotDot
The dot in this message is out of order
Show fields
The source of this message already has a pending message, we can not start a new operation until the first one has completed
Show fields
This message is not from this generation
Show fields
Fields of MessageFromDifferentGeneration
Source is not a voting member
Show fields
Fields of SourceIsNotVotingMember
the datatype failed to validate the operation
Signature is invalid
We received a SignedValidated packet for a message we did not request
Message dot to be applied is not the next message to be delivered
Show fields
The proof did not contain enough signatures to form quorum
Proof contains signatures from non-members
Proof contains invalid signatures
We received a Op::Delivered packet for a message we did not initiate. Only the initiator should receive these delivered packets.
We received an Op::Delivered packet for a message we are no longer waiting on. This can happen when we’ve already received a super-majority of Delivered packets and have cleared our local buffer.
PhantomSig(PhantomData<S>)
Phantom, unused.
Trait Implementations
Auto Trait Implementations
impl<A, S, V> RefUnwindSafe for ValidationError<A, S, V> where
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<A, S, V> Send for ValidationError<A, S, V> where
A: Send,
S: Send,
V: Send,
impl<A, S, V> Sync for ValidationError<A, S, V> where
A: Sync,
S: Sync,
V: Sync,
impl<A, S, V> Unpin for ValidationError<A, S, V> where
A: Unpin,
S: Unpin,
V: Unpin,
impl<A, S, V> UnwindSafe for ValidationError<A, S, V> where
A: RefUnwindSafe + UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,