Enum brb_membership::error::Error [−][src]
pub enum Error<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: Generation, gen: Generation, pending_gen: Generation, }, 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(Generation), InvalidVoteInHistory(Vote<A, S>), Encoding(Error), Other(String),
Variants
IO(Error)
InvalidSignature(Error)
Show fields
Fields of MembersAtCapacity
members: BTreeSet<A>
Show fields
Fields of JoinRequestForExistingMember
requester: A
members: BTreeSet<A>
Show fields
Fields of LeaveRequestForNonMember
requester: A
members: BTreeSet<A>
Show fields
Fields of VoteNotForNextGeneration
Show fields
Fields of VoteFromNonMember
voter: A
members: BTreeSet<A>
Show fields
Fields of ExistingVoteIncompatibleWithNewVote
existing_vote: Vote<A, S>
InvalidGeneration(Generation)
InvalidVoteInHistory(Vote<A, S>)
Encoding(Error)
Other(String)
Trait Implementations
impl<A, S> Error for Error<A, S> where
A: Ord + Debug,
S: Ord + Debug,
[src]
impl<A, S> Error for Error<A, S> where
A: Ord + Debug,
S: Ord + Debug,
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
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]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<A, S> !RefUnwindSafe for Error<A, S>
impl<A, S> Send for Error<A, S> where
A: Send,
S: Send,
A: Send,
S: Send,
impl<A, S> Sync for Error<A, S> where
A: Sync,
S: Sync,
A: Sync,
S: Sync,
impl<A, S> Unpin for Error<A, S> where
A: Unpin,
S: Unpin,
A: Unpin,
S: Unpin,
impl<A, S> !UnwindSafe for Error<A, S>
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>,