pub enum WatchState {
Attached {
at: u64,
},
Failed {
reason: String,
},
Unknown,
}Expand description
The watch’s state, as .watch carries it.
Variants§
Attached
All probes attached and events flowing, confirmed at this time.
Failed
A probe failed to attach, or the watch was lost; why, on one line.
Unknown
No .watch, or one this crate cannot read: not known to be healthy.
Trait Implementations§
Source§impl Clone for WatchState
impl Clone for WatchState
Source§fn clone(&self) -> WatchState
fn clone(&self) -> WatchState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchState
impl Debug for WatchState
Source§impl<'de> Deserialize<'de> for WatchState
impl<'de> Deserialize<'de> for WatchState
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 WatchState
impl PartialEq for WatchState
Source§impl Serialize for WatchState
impl Serialize for WatchState
impl Eq for WatchState
impl StructuralPartialEq for WatchState
Auto Trait Implementations§
impl Freeze for WatchState
impl RefUnwindSafe for WatchState
impl Send for WatchState
impl Sync for WatchState
impl Unpin for WatchState
impl UnsafeUnpin for WatchState
impl UnwindSafe for WatchState
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