pub enum Alive {
Yes,
Ping,
Dead(Duration),
}Expand description
What a Liveness check asks for.
Variants§
Yes
Nothing to do.
Ping
Send a ping now.
Dead(Duration)
Nothing arrived for this long: the other side is dead.
Trait Implementations§
impl Copy for Alive
impl Eq for Alive
impl StructuralPartialEq for Alive
Auto Trait Implementations§
impl Freeze for Alive
impl RefUnwindSafe for Alive
impl Send for Alive
impl Sync for Alive
impl Unpin for Alive
impl UnsafeUnpin for Alive
impl UnwindSafe for Alive
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