Struct jopemachine_raft::Status
source · 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: u64
The ID of the current node.
hs: HardState
The hardstate of the raft, representing voted state.
ss: SoftState
The softstate of the raft, representing proposed state.
applied: u64
The 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> 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