Struct NodeStatus
pub struct NodeStatus {
pub view: u64,
pub primary: bool,
pub ready: bool,
pub stopped: bool,
pub epoch: u64,
pub retired: bool,
pub joining: bool,
pub op: Op,
pub checkpoint: Op,
pub commit: Op,
pub applied: Op,
}Expand description
A replica’s role and progress. Status receivers are notified when view,
primary, ready or stopped changes; the progress fields are updated
in place on every commit without waking anyone, so read them by polling.
Fields§
§view: u64§primary: bool§ready: boolPrimary, with every entry committed and applied: the engine may open.
stopped: boolThe replica stopped after an unrecoverable storage error.
epoch: u64The membership epoch this replica is in (see ReplicaNode::membership).
retired: boolA membership change removed this replica: it takes part in nothing and can be stopped once the new members have caught up.
joining: boolA new member that has not yet learned the membership including it.
op: Op§checkpoint: OpCommitted prefix covered by a durable portable checkpoint.
commit: Op§applied: OpTrait Implementations§
§impl Clone for NodeStatus
impl Clone for NodeStatus
impl Copy for NodeStatus
§impl Debug for NodeStatus
impl Debug for NodeStatus
impl Eq for NodeStatus
§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Forget for NodeStatus
impl Freeze for NodeStatus
impl Move for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnsafeUnpin for NodeStatus
impl UnwindSafe for NodeStatus
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