pub struct Status<'a> {
pub id: u64,
pub hs: HardState,
pub ss: SoftState,
pub applied: u64,
pub progress: Option<&'a ProgressTracker>,
}Expand description
Represents the current status of the raft
Fields§
§id: u64The ID of the current node.
hs: HardStateThe hardstate of the raft, representing voted state.
ss: SoftStateThe softstate of the raft, representing proposed state.
applied: u64The index of the last entry to have been applied.
progress: Option<&'a ProgressTracker>The progress towards catching up and applying logs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Status<'a>
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnwindSafe for Status<'a>
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