pub struct PeerStats {
pub next_index: LogIndex,
pub match_index: LogIndex,
}Expand description
One peer’s replication progress, as reported in a stats snapshot.
Fields§
§next_index: LogIndexThe index of the next entry to send this peer.
match_index: LogIndexThe highest index known to be held contiguously by this peer.
Trait Implementations§
impl Copy for PeerStats
impl Eq for PeerStats
impl StructuralPartialEq for PeerStats
Auto Trait Implementations§
impl Forget for PeerStats
impl Freeze for PeerStats
impl Move for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnsafeUnpin for PeerStats
impl UnwindSafe for PeerStats
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