pub enum ComponentHealthState<K> {
Present(ComponentHealth<K>),
Removed {
component: K,
version: ObservationVersion,
},
}Expand description
Complete retained state for one known component.
Variants§
Present(ComponentHealth<K>)
Latest evidence describes a present component.
Removed
The component was explicitly removed at this version.
Fields
§
component: KApplication-defined component identity.
§
version: ObservationVersionRemoval version retained to reject stale resurrection.
Trait Implementations§
Source§impl<K: Clone> Clone for ComponentHealthState<K>
impl<K: Clone> Clone for ComponentHealthState<K>
Source§fn clone(&self) -> ComponentHealthState<K>
fn clone(&self) -> ComponentHealthState<K>
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<K: Debug> Debug for ComponentHealthState<K>
impl<K: Debug> Debug for ComponentHealthState<K>
Source§impl<K: PartialEq> PartialEq for ComponentHealthState<K>
impl<K: PartialEq> PartialEq for ComponentHealthState<K>
impl<K: Eq> Eq for ComponentHealthState<K>
impl<K> StructuralPartialEq for ComponentHealthState<K>
Auto Trait Implementations§
impl<K> Freeze for ComponentHealthState<K>where
K: Freeze,
impl<K> RefUnwindSafe for ComponentHealthState<K>where
K: RefUnwindSafe,
impl<K> Send for ComponentHealthState<K>where
K: Send,
impl<K> Sync for ComponentHealthState<K>where
K: Sync,
impl<K> Unpin for ComponentHealthState<K>where
K: Unpin,
impl<K> UnsafeUnpin for ComponentHealthState<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for ComponentHealthState<K>where
K: UnwindSafe,
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