pub enum Error {
Show 16 variants
MismatchedPayload,
UnknownPayload,
MissingVotes,
SignatureFailure,
UnknownPeer,
InvalidPeerState {
required: PeerState,
actual: PeerState,
},
InvalidSelfState {
required: PeerState,
actual: PeerState,
},
InvalidEvent,
UnknownSelfParent,
UnknownOtherParent,
DuplicateVote,
PrematureGossip,
InvalidMessage,
DuplicateMessage,
FailedDkg,
Logic,
}
Expand description
Parsec error
Variants§
MismatchedPayload
Payload of a Vote
doesn’t match the payload of a Block
.
UnknownPayload
Payload hash doesn’t correspond to any payload known to us.
MissingVotes
Attempt to create a block with no votes.
SignatureFailure
Failed to verify signature.
UnknownPeer
Peer is not known to our node.
InvalidPeerState
Peer is known to us, but has unexpected state.
InvalidSelfState
Our node is in unexpected state.
InvalidEvent
The given event is invalid or malformed.
UnknownSelfParent
The event’s self-parent is unknown to our node.
UnknownOtherParent
The event’s other-parent is unknown to our node.
DuplicateVote
Our node has already voted for this network event.
PrematureGossip
The peer sent a message to us before knowing we could handle it.
InvalidMessage
The request or response is invalid.
DuplicateMessage
The request or response has already been handled by us.
FailedDkg
Faild DKG process
Logic
Logic error.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more