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
impl<A: Debug + Actor<S> + 'static, S: Debug + Sig + 'static, V: Debug + Error + 'static> Debug for ValidationError<A, S, V>
[src]
impl<A: Debug + Actor<S> + 'static, S: Debug + Sig + 'static, V: Debug + Error + 'static> Debug for ValidationError<A, S, V>
[src]impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> Display for ValidationError<A, S, V>
[src]
impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> Display for ValidationError<A, S, V>
[src]impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> Error for ValidationError<A, S, V>
[src]
impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> Error for ValidationError<A, S, V>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
Auto Trait Implementations
impl<A, S, V> RefUnwindSafe for ValidationError<A, S, V> where
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<A, S, V> Send for ValidationError<A, S, V> where
A: Send,
S: Send,
V: Send,
A: Send,
S: Send,
V: Send,
impl<A, S, V> Sync for ValidationError<A, S, V> where
A: Sync,
S: Sync,
V: Sync,
A: Sync,
S: Sync,
V: Sync,
impl<A, S, V> Unpin for ValidationError<A, S, V> where
A: Unpin,
S: Unpin,
V: Unpin,
A: Unpin,
S: Unpin,
V: Unpin,
impl<A, S, V> UnwindSafe for ValidationError<A, S, V> where
A: RefUnwindSafe + UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,