Struct raft::raw_node::LightReady[][src]

pub struct LightReady { /* fields omitted */ }
[]

LightReady encapsulates the commit index, committed entries and messages that are ready to be applied or be sent to other peers.

Implementations

impl LightReady[src][]

pub fn commit_index(&self) -> Option<u64>[src][]

The current commit index. It will be None state if there is no update. It is not required to save it to stable storage.

pub fn committed_entries(&self) -> &Vec<Entry>[src][]

CommittedEntries specifies entries to be committed to a store/state-machine. These have previously been committed to stable store.

pub fn take_committed_entries(&mut self) -> Vec<Entry>[src][]

Take the CommitEntries.

pub fn messages(&self) -> &[Message][src][]

Messages specifies outbound messages to be sent.

pub fn take_messages(&mut self) -> Vec<Message>[src][]

Take the Messages.

Trait Implementations

impl Debug for LightReady[src][+]

impl Default for LightReady[src][+]

impl PartialEq<LightReady> for LightReady[src][+]

impl StructuralPartialEq for LightReady[src]

Auto Trait Implementations

impl RefUnwindSafe for LightReady

impl Send for LightReady

impl Sync for LightReady

impl Unpin for LightReady

impl UnwindSafe for LightReady

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?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>, 
[src][+]