Struct agreed::raft::AppendEntriesResponse [−][src]
pub struct AppendEntriesResponse { pub term: u64, pub success: bool, pub conflict_opt: Option<ConflictOpt>, }
Expand description
The response to an AppendEntriesRequest
.
Fields
term: u64
Expand description
The responding node’s current term, for leader to update itself.
success: bool
Expand description
Will be true if follower contained entry matching prev_log_index
and prev_log_term
.
conflict_opt: Option<ConflictOpt>
Expand description
A value used to implement the conflicting term optimization outlined in §5.3.
This value will only be present, and should only be considered, when success
is false
.
Trait Implementations
impl Debug for AppendEntriesResponse
[src]
impl Debug for AppendEntriesResponse
[src]impl<'de> Deserialize<'de> for AppendEntriesResponse
[src]
impl<'de> Deserialize<'de> for AppendEntriesResponse
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for AppendEntriesResponse
[src]
impl Serialize for AppendEntriesResponse
[src]Auto Trait Implementations
impl RefUnwindSafe for AppendEntriesResponse
impl Send for AppendEntriesResponse
impl Sync for AppendEntriesResponse
impl Unpin for AppendEntriesResponse
impl UnwindSafe for AppendEntriesResponse
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,