pub enum MembershipError<A, S> where
A: Ord + Debug,
S: Ord + Debug, {
Show variants
IO(Error),
NoMembers,
InvalidSignature(Error),
WrongDestination {
dest: A,
actor: A,
},
MembersAtCapacity {
members: BTreeSet<A>,
},
JoinRequestForExistingMember {
requester: A,
members: BTreeSet<A>,
},
LeaveRequestForNonMember {
requester: A,
members: BTreeSet<A>,
},
VoteNotForNextGeneration {
vote_gen: u64,
gen: u64,
pending_gen: u64,
},
VoteFromNonMember {
voter: A,
members: BTreeSet<A>,
},
VoterChangedMind {
reconfigs: BTreeSet<(A, Reconfig<A>)>,
},
ExistingVoteIncompatibleWithNewVote {
existing_vote: Vote<A, S>,
},
SuperMajorityBallotIsNotSuperMajority {
ballot: Ballot<A, S>,
members: BTreeSet<A>,
},
InvalidGeneration(u64),
InvalidVoteInHistory(Vote<A, S>),
Encoding(Box<ErrorKind, Global>),
Other(String),
}
Show fields
Fields of WrongDestination
Show fields
Fields of MembersAtCapacity
Show fields
Fields of JoinRequestForExistingMember
Show fields
Fields of LeaveRequestForNonMember
Show fields
Fields of VoteNotForNextGeneration
Show fields
Fields of VoteFromNonMember
Show fields
Fields of VoterChangedMind
Show fields
Fields of ExistingVoteIncompatibleWithNewVote
Show fields
Fields of SuperMajorityBallotIsNotSuperMajority
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (backtrace
)
Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,