Enum brb::MembershipError [−][src]
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),
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 VoteFromNonMember
voter: A
members: BTreeSet<A>
Show fields
Fields of ExistingVoteIncompatibleWithNewVote
existing_vote: Vote<A, S>
InvalidGeneration(u64)
InvalidVoteInHistory(Vote<A, S>)
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]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub 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()
impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> From<Error<A, S>> for Error<A, S, V>
[src]
impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> From<Error<A, S>> for Error<A, S, V>
[src]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>,