pub struct InstallSnapshotReply {
pub term: Term,
pub from: NodeId,
pub last_index: Index,
}Expand description
A follower’s response to an InstallSnapshot.
last_index is the snapshot’s index the follower has now installed, which
the leader uses to advance that follower’s replication progress.
§Examples
use raft_io::InstallSnapshotReply;
let reply = InstallSnapshotReply { term: 5, from: 2, last_index: 10 };
assert_eq!(reply.last_index, 10);Fields§
§term: TermThe follower’s current term, for the leader to update itself.
from: NodeIdThe node that produced this reply.
last_index: IndexThe snapshot index the follower has installed.
Trait Implementations§
Source§impl Clone for InstallSnapshotReply
impl Clone for InstallSnapshotReply
Source§fn clone(&self) -> InstallSnapshotReply
fn clone(&self) -> InstallSnapshotReply
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 InstallSnapshotReply
impl Debug for InstallSnapshotReply
Source§impl Deserialize for InstallSnapshotReply
impl Deserialize for InstallSnapshotReply
impl Eq for InstallSnapshotReply
Source§impl PartialEq for InstallSnapshotReply
impl PartialEq for InstallSnapshotReply
Source§fn eq(&self, other: &InstallSnapshotReply) -> bool
fn eq(&self, other: &InstallSnapshotReply) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstallSnapshotReply
impl Serialize for InstallSnapshotReply
impl StructuralPartialEq for InstallSnapshotReply
Auto Trait Implementations§
impl Freeze for InstallSnapshotReply
impl RefUnwindSafe for InstallSnapshotReply
impl Send for InstallSnapshotReply
impl Sync for InstallSnapshotReply
impl Unpin for InstallSnapshotReply
impl UnsafeUnpin for InstallSnapshotReply
impl UnwindSafe for InstallSnapshotReply
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