Struct raft_proto::eraftpb::ConfState[][src]

pub struct ConfState {
    pub voters: Vec<u64>,
    pub learners: Vec<u64>,
    pub voters_outgoing: Vec<u64>,
    pub learners_next: Vec<u64>,
    pub auto_leave: bool,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

voters: Vec<u64>learners: Vec<u64>voters_outgoing: Vec<u64>learners_next: Vec<u64>auto_leave: boolunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl ConfState[src]

pub fn new() -> ConfState[src]

pub fn get_voters(&self) -> &[u64][src]

pub fn clear_voters(&mut self)[src]

pub fn set_voters(&mut self, v: Vec<u64>)[src]

pub fn mut_voters(&mut self) -> &mut Vec<u64>[src]

pub fn take_voters(&mut self) -> Vec<u64>[src]

pub fn get_learners(&self) -> &[u64][src]

pub fn clear_learners(&mut self)[src]

pub fn set_learners(&mut self, v: Vec<u64>)[src]

pub fn mut_learners(&mut self) -> &mut Vec<u64>[src]

pub fn take_learners(&mut self) -> Vec<u64>[src]

pub fn get_voters_outgoing(&self) -> &[u64][src]

pub fn clear_voters_outgoing(&mut self)[src]

pub fn set_voters_outgoing(&mut self, v: Vec<u64>)[src]

pub fn mut_voters_outgoing(&mut self) -> &mut Vec<u64>[src]

pub fn take_voters_outgoing(&mut self) -> Vec<u64>[src]

pub fn get_learners_next(&self) -> &[u64][src]

pub fn clear_learners_next(&mut self)[src]

pub fn set_learners_next(&mut self, v: Vec<u64>)[src]

pub fn mut_learners_next(&mut self) -> &mut Vec<u64>[src]

pub fn take_learners_next(&mut self) -> Vec<u64>[src]

pub fn get_auto_leave(&self) -> bool[src]

pub fn clear_auto_leave(&mut self)[src]

pub fn set_auto_leave(&mut self, v: bool)[src]

Trait Implementations

impl Clear for ConfState[src]

impl Clone for ConfState[src]

impl Debug for ConfState[src]

impl Default for ConfState[src]

impl<'a> Default for &'a ConfState[src]

impl<Iter1, Iter2> From<(Iter1, Iter2)> for ConfState where
    Iter1: IntoIterator<Item = u64>,
    Iter2: IntoIterator<Item = u64>, 
[src]

impl Message for ConfState[src]

impl PartialEq<ConfState> for ConfState[src]

impl PbPrint for ConfState[src]

impl ProtobufValue for ConfState[src]

impl StructuralPartialEq for ConfState[src]

Auto Trait Implementations

impl RefUnwindSafe for ConfState

impl Send for ConfState

impl Sync for ConfState

impl Unpin for ConfState

impl UnwindSafe for ConfState

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.