Enum kvproto::metapb::PeerRole[][src]

pub enum PeerRole {
    Voter,
    Learner,
    IncomingVoter,
    DemotingVoter,
}

Variants

Voter
Learner
IncomingVoter
DemotingVoter

Trait Implementations

impl Clone for PeerRole[src]

impl Copy for PeerRole[src]

impl Debug for PeerRole[src]

impl Default for PeerRole[src]

impl Eq for PeerRole[src]

impl Hash for PeerRole[src]

impl PartialEq<PeerRole> for PeerRole[src]

impl PbPrint for PeerRole[src]

impl ProtobufEnum for PeerRole[src]

impl ProtobufValue for PeerRole[src]

impl StructuralEq for PeerRole[src]

impl StructuralPartialEq for PeerRole[src]

Auto Trait Implementations

impl RefUnwindSafe for PeerRole

impl Send for PeerRole

impl Sync for PeerRole

impl Unpin for PeerRole

impl UnwindSafe for PeerRole

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.