pub enum DoctorState {
NotRun,
Ready {
at: u64,
},
Stale {
at: u64,
},
Failed {
at: u64,
error: String,
},
Unknown,
}Expand description
How current the daemon’s doctor checks are (ADR 0132). Times are seconds since the Unix epoch.
Variants§
NotRun
No run has finished since the daemon started.
Ready
Run for the config the daemon runs with, recently enough to stand.
Stale
Run for a config replaced since, or too long ago: they may no longer hold. A new run is under way or due.
Failed
The last run did not finish.
Unknown
A state from a newer daemon than this client knows: the checks are not known to be current.
Implementations§
Trait Implementations§
Source§impl Clone for DoctorState
impl Clone for DoctorState
Source§impl Debug for DoctorState
impl Debug for DoctorState
Source§impl<'de> Deserialize<'de> for DoctorState
impl<'de> Deserialize<'de> for DoctorState
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
impl Eq for DoctorState
Source§impl PartialEq for DoctorState
impl PartialEq for DoctorState
Source§impl Serialize for DoctorState
impl Serialize for DoctorState
impl StructuralPartialEq for DoctorState
Auto Trait Implementations§
impl Forget for DoctorState
impl Freeze for DoctorState
impl Move for DoctorState
impl RefUnwindSafe for DoctorState
impl Send for DoctorState
impl Sync for DoctorState
impl Unpin for DoctorState
impl UnsafeUnpin for DoctorState
impl UnwindSafe for DoctorState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.