pub struct ApplyEntry {
pub index: u64,
pub term: u64,
pub command: Command,
}Expand description
A decoded Raft log entry ready for state machine application.
Pairs index / term with the decoded Command so that state machines can
produce ApplyResult { index, .. } without re-reading the original Entry.
Fields§
§index: u64§term: u64§command: CommandTrait Implementations§
Source§impl Clone for ApplyEntry
impl Clone for ApplyEntry
Source§fn clone(&self) -> ApplyEntry
fn clone(&self) -> ApplyEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplyEntry
impl Debug for ApplyEntry
Source§impl PartialEq for ApplyEntry
impl PartialEq for ApplyEntry
Source§fn eq(&self, other: &ApplyEntry) -> bool
fn eq(&self, other: &ApplyEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplyEntry
Auto Trait Implementations§
impl !Freeze for ApplyEntry
impl RefUnwindSafe for ApplyEntry
impl Send for ApplyEntry
impl Sync for ApplyEntry
impl Unpin for ApplyEntry
impl UnsafeUnpin for ApplyEntry
impl UnwindSafe for ApplyEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request