Enum brb_membership::error::Error[][src]

pub enum Error<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: 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)
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: Generationgen: Generationpending_gen: Generation
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(Generation)
InvalidVoteInHistory(Vote<A, S>)
Encoding(Error)
Other(String)

Trait Implementations

impl<A: Debug, S: Debug> Debug for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[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: Ord + Debug, S: Ord + Debug> From<&'static str> for Error<A, S>[src]

impl<A, S> From<Box<ErrorKind, Global>> 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<Error> for Error<A, S> where
    A: Ord + Debug,
    S: Ord + Debug
[src]

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

Auto Trait Implementations

impl<A, S> !RefUnwindSafe for Error<A, S>[src]

impl<A, S> Send for Error<A, S> where
    A: Send,
    S: Send
[src]

impl<A, S> Sync for Error<A, S> where
    A: Sync,
    S: Sync
[src]

impl<A, S> Unpin for Error<A, S> where
    A: Unpin,
    S: Unpin
[src]

impl<A, S> !UnwindSafe for Error<A, S>[src]

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>,