Enum brb::MembershipError[][src]

pub enum MembershipError<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
{ 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)
NoMembers
InvalidSignature(Error)
WrongDestination

Fields of WrongDestination

dest: Aactor: A
MembersAtCapacity

Fields of MembersAtCapacity

members: BTreeSet<A>
JoinRequestForExistingMember

Fields of JoinRequestForExistingMember

requester: Amembers: BTreeSet<A>
LeaveRequestForNonMember

Fields of LeaveRequestForNonMember

requester: Amembers: BTreeSet<A>
VoteNotForNextGeneration

Fields of VoteNotForNextGeneration

vote_gen: u64gen: u64pending_gen: u64
VoteFromNonMember

Fields of VoteFromNonMember

voter: Amembers: BTreeSet<A>
VoterChangedMind

Fields of VoterChangedMind

reconfigs: BTreeSet<(A, Reconfig<A>)>
ExistingVoteIncompatibleWithNewVote

Fields of ExistingVoteIncompatibleWithNewVote

existing_vote: Vote<A, S>
SuperMajorityBallotIsNotSuperMajority

Fields of SuperMajorityBallotIsNotSuperMajority

ballot: Ballot<A, S>members: BTreeSet<A>
InvalidGeneration(u64)
InvalidVoteInHistory(Vote<A, S>)
Encoding(Box<ErrorKind, Global>)
Other(String)

Trait Implementations

impl<A, S> Debug for Error<A, S> where
    A: Debug + Ord,
    S: Debug + Ord
[src]

impl<A, S> Display 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]

impl<A, S> From<&'static str> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[src]

impl<A, S> From<Box<ErrorKind, Global>> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[src]

impl<A: Actor<S> + 'static, S: Sig + 'static, V: Debug + Error + 'static> From<Error<A, S>> for Error<A, S, V>[src]

impl<A, S> From<Error> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[src]

impl<A, S> From<Error> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[src]

impl<A, S> From<String> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[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

impl<A, S> Sync for Error<A, S> where
    A: Sync,
    S: Sync

impl<A, S> Unpin for Error<A, S> where
    A: Unpin,
    S: Unpin

impl<A, S> !UnwindSafe for Error<A, S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,