pub enum OwnerLiveness {
ConfirmedUp,
ConfirmedDown,
Unconfirmed,
}Expand description
What a TransitionTracker-style hysteresis says about one machine, crossed
into this crate as plain data.
The yubaba-side original is
yubaba::lease_detector::TransitionTracker::committed, which answers
Option<Confirmed>. It is re-spelled rather than imported because this
crate sits below both consumers and must not depend on either. The
crossing is by value.
Variants§
ConfirmedUp
The hysteresis has committed this machine as up.
ConfirmedDown
The hysteresis has committed this machine as down — the only value that is positive evidence against a machine.
Unconfirmed
Never dwelled long enough in either direction to be committed: a freshly-elected leader’s tracker, a node mid-flap, or no detector at all. Not the same as down.
Trait Implementations§
Source§impl Clone for OwnerLiveness
impl Clone for OwnerLiveness
impl Copy for OwnerLiveness
Source§impl Debug for OwnerLiveness
impl Debug for OwnerLiveness
impl Eq for OwnerLiveness
Source§impl PartialEq for OwnerLiveness
impl PartialEq for OwnerLiveness
impl StructuralPartialEq for OwnerLiveness
Auto Trait Implementations§
impl Freeze for OwnerLiveness
impl RefUnwindSafe for OwnerLiveness
impl Send for OwnerLiveness
impl Sync for OwnerLiveness
impl Unpin for OwnerLiveness
impl UnsafeUnpin for OwnerLiveness
impl UnwindSafe for OwnerLiveness
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