Struct raft::raw_node::LightReady [−][src]
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]
fn default() -> LightReady[src]
impl PartialEq<LightReady> for LightReady[src]
fn eq(&self, other: &LightReady) -> bool[src]
fn ne(&self, other: &LightReady) -> bool[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,