pub enum LivenessVerdict {
Unchanged,
PathDown,
Recovered,
Dead,
}Available on crate feature
std only.Expand description
The transition implied by one liveness evaluation. The caller maps it onto the
session state machine (Connected ⇄ Migrating → Dead).
Variants§
Unchanged
No transition — keep the current state.
PathDown
Path is down: Connected → Migrating (surface “migrate me”; hold keys).
Recovered
Inbound life resumed while Migrating: Migrating → Connected.
Dead
Idle-timeout elapsed while Migrating with no recovery: Migrating → Dead.
Trait Implementations§
Source§impl Clone for LivenessVerdict
impl Clone for LivenessVerdict
Source§fn clone(&self) -> LivenessVerdict
fn clone(&self) -> LivenessVerdict
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LivenessVerdict
Source§impl Debug for LivenessVerdict
impl Debug for LivenessVerdict
impl Eq for LivenessVerdict
Source§impl PartialEq for LivenessVerdict
impl PartialEq for LivenessVerdict
Source§fn eq(&self, other: &LivenessVerdict) -> bool
fn eq(&self, other: &LivenessVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LivenessVerdict
Auto Trait Implementations§
impl Freeze for LivenessVerdict
impl RefUnwindSafe for LivenessVerdict
impl Send for LivenessVerdict
impl Sync for LivenessVerdict
impl Unpin for LivenessVerdict
impl UnsafeUnpin for LivenessVerdict
impl UnwindSafe for LivenessVerdict
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