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)
NoMembers
InvalidSignature(Error)
WrongDestination
Show fields

Fields of WrongDestination

dest: Aactor: A
MembersAtCapacity
Show fields

Fields of MembersAtCapacity

members: BTreeSet<A>
JoinRequestForExistingMember
Show fields

Fields of JoinRequestForExistingMember

requester: Amembers: BTreeSet<A>
LeaveRequestForNonMember
Show fields

Fields of LeaveRequestForNonMember

requester: Amembers: BTreeSet<A>
VoteNotForNextGeneration
Show fields

Fields of VoteNotForNextGeneration

vote_gen: u64gen: u64pending_gen: u64
VoteFromNonMember
Show fields

Fields of VoteFromNonMember

voter: Amembers: BTreeSet<A>
VoterChangedMind
Show fields

Fields of VoterChangedMind

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

Fields of ExistingVoteIncompatibleWithNewVote

existing_vote: Vote<A, S>
SuperMajorityBallotIsNotSuperMajority
Show fields

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]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

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

pub fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

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]

The lower-level source of this error, if any. Read more

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) -> &str1.0.0[src]

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

pub fn from(v: &'static str) -> Error<A, S>[src]

Performs the conversion.

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

pub fn from(source: Box<ErrorKind, Global>) -> Error<A, S>[src]

Performs the conversion.

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

fn from(source: Error<A, S>) -> Self[src]

Performs the conversion.

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

pub fn from(source: Error) -> Error<A, S>[src]

Performs the conversion.

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

pub fn from(source: Error) -> Error<A, S>[src]

Performs the conversion.

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

pub fn from(v: String) -> Error<A, S>[src]

Performs the conversion.

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V