pub enum DetectorHealth {
Unchecked {
since: (),
},
Available {
since: Timestamp,
},
Unavailable {
since: Timestamp,
},
}Expand description
The failure detector’s health, and since when it has been so: since is
null exactly while the status is unchecked.
Variants§
Unchecked
Nothing checks it: no detector health address is configured, or no check has been made yet.
Available
It answered its health check, from since on.
It did not answer its health check, from since on.
Trait Implementations§
Source§impl Clone for DetectorHealth
impl Clone for DetectorHealth
Source§impl Debug for DetectorHealth
impl Debug for DetectorHealth
Source§impl<'de> Deserialize<'de> for DetectorHealth
impl<'de> Deserialize<'de> for DetectorHealth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DetectorHealth
impl PartialEq for DetectorHealth
Source§impl Serialize for DetectorHealth
impl Serialize for DetectorHealth
impl StructuralPartialEq for DetectorHealth
Auto Trait Implementations§
impl Freeze for DetectorHealth
impl RefUnwindSafe for DetectorHealth
impl Send for DetectorHealth
impl Sync for DetectorHealth
impl Unpin for DetectorHealth
impl UnsafeUnpin for DetectorHealth
impl UnwindSafe for DetectorHealth
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