[][src]Struct libraft::raftpb::ConfState

pub struct ConfState {
    pub nodes: Vec<u64>,
    pub learners: Vec<u64>,
    // some fields omitted
}

Fields

nodes: Vec<u64>learners: Vec<u64>

Methods

impl ConfState
[src]

pub fn new() -> ConfState
[src]

pub fn default_instance() -> &'static ConfState
[src]

pub fn clear_nodes(&mut self)
[src]

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

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

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

pub fn get_nodes(&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_learners(&self) -> &[u64]
[src]

Trait Implementations

impl Sync for ConfState
[src]

impl Default for ConfState
[src]

impl PartialEq<ConfState> for ConfState
[src]

impl Clone for ConfState
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ConfState
[src]

impl Message for ConfState
[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
[src]

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]

fn check_initialized(&self) -> Result<(), ProtobufError>
[src]

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
[src]

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]

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

impl MessageStatic for ConfState
[src]

impl Clear for ConfState
[src]

impl ProtobufValue for ConfState
[src]

fn as_any(&self) -> &(dyn Any + 'static)
[src]

fn is_non_zero(&self) -> bool
[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]

Auto Trait Implementations

impl Send for ConfState

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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