Struct raft::Progress [−][src]
pub struct Progress { pub matched: u64, pub next_idx: u64, pub state: ProgressState, pub paused: bool, pub pending_snapshot: u64, pub recent_active: bool, pub ins: Inflights, pub is_learner: bool, }
Fields
matched: u64
next_idx: u64
state: ProgressState
paused: bool
pending_snapshot: u64
recent_active: bool
ins: Inflights
is_learner: bool
Methods
impl Progress
[src]
impl Progress
pub fn become_probe(&mut self)
[src]
pub fn become_probe(&mut self)
pub fn become_replicate(&mut self)
[src]
pub fn become_replicate(&mut self)
pub fn become_snapshot(&mut self, snapshot_idx: u64)
[src]
pub fn become_snapshot(&mut self, snapshot_idx: u64)
pub fn snapshot_failure(&mut self)
[src]
pub fn snapshot_failure(&mut self)
pub fn maybe_snapshot_abort(&self) -> bool
[src]
pub fn maybe_snapshot_abort(&self) -> bool
pub fn maybe_update(&mut self, n: u64) -> bool
[src]
pub fn maybe_update(&mut self, n: u64) -> bool
pub fn optimistic_update(&mut self, n: u64)
[src]
pub fn optimistic_update(&mut self, n: u64)
pub fn maybe_decr_to(&mut self, rejected: u64, last: u64) -> bool
[src]
pub fn maybe_decr_to(&mut self, rejected: u64, last: u64) -> bool
pub fn is_paused(&self) -> bool
[src]
pub fn is_paused(&self) -> bool
pub fn resume(&mut self)
[src]
pub fn resume(&mut self)
pub fn pause(&mut self)
[src]
pub fn pause(&mut self)
Trait Implementations
impl Debug for Progress
[src]
impl Debug for Progress
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Progress
[src]
impl Default for Progress
impl Clone for Progress
[src]
impl Clone for Progress