pub struct ReadProbeReply {
pub term: Term,
pub from: NodeId,
pub seq: u64,
}Expand description
A follower’s acknowledgement of a ReadProbe.
A follower replies iff it still recognises the prober as leader for its term.
seq echoes the probe so the leader counts replies for the right round; if
term exceeds the leader’s, the leader has been deposed and steps down rather
than counting the reply.
§Examples
use raft_io::ReadProbeReply;
let reply = ReadProbeReply { term: 5, from: 2, seq: 42 };
assert_eq!(reply.from, 2);Fields§
§term: TermThe responder’s current term, for the leader to update itself.
from: NodeIdThe node that produced this reply.
seq: u64The probe round this reply confirms (echoed from the ReadProbe).
Trait Implementations§
Source§impl Clone for ReadProbeReply
impl Clone for ReadProbeReply
Source§fn clone(&self) -> ReadProbeReply
fn clone(&self) -> ReadProbeReply
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 ReadProbeReply
impl Debug for ReadProbeReply
Source§impl Deserialize for ReadProbeReply
impl Deserialize for ReadProbeReply
impl Eq for ReadProbeReply
Source§impl PartialEq for ReadProbeReply
impl PartialEq for ReadProbeReply
Source§fn eq(&self, other: &ReadProbeReply) -> bool
fn eq(&self, other: &ReadProbeReply) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReadProbeReply
impl Serialize for ReadProbeReply
impl StructuralPartialEq for ReadProbeReply
Auto Trait Implementations§
impl Freeze for ReadProbeReply
impl RefUnwindSafe for ReadProbeReply
impl Send for ReadProbeReply
impl Sync for ReadProbeReply
impl Unpin for ReadProbeReply
impl UnsafeUnpin for ReadProbeReply
impl UnwindSafe for ReadProbeReply
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