pub enum HealthError<K> {
Stale {
component: K,
observed: ObservationVersion,
current: ObservationVersion,
evidence: HealthEvidence,
},
ConflictingVersion {
component: K,
version: ObservationVersion,
evidence: HealthEvidence,
},
}Expand description
Rejected versioned health evidence.
Variants§
Stale
Evidence predates the latest committed version.
Fields
§
component: KComponent whose evidence was rejected.
§
observed: ObservationVersionRejected version.
§
current: ObservationVersionLatest committed version.
§
evidence: HealthEvidenceExact rejected evidence.
ConflictingVersion
Evidence reuses a committed version with different meaning.
Fields
§
component: KComponent whose evidence was rejected.
§
version: ObservationVersionReused version.
§
evidence: HealthEvidenceExact rejected evidence.
Trait Implementations§
Source§impl<K: Clone> Clone for HealthError<K>
impl<K: Clone> Clone for HealthError<K>
Source§fn clone(&self) -> HealthError<K>
fn clone(&self) -> HealthError<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 HealthError<K>
impl<K: Debug> Debug for HealthError<K>
Source§impl<K> Display for HealthError<K>
impl<K> Display for HealthError<K>
Source§impl<K> Error for HealthError<K>
impl<K> Error for HealthError<K>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<K: PartialEq> PartialEq for HealthError<K>
impl<K: PartialEq> PartialEq for HealthError<K>
impl<K: Eq> Eq for HealthError<K>
impl<K> StructuralPartialEq for HealthError<K>
Auto Trait Implementations§
impl<K> Freeze for HealthError<K>where
K: Freeze,
impl<K> RefUnwindSafe for HealthError<K>where
K: RefUnwindSafe,
impl<K> Send for HealthError<K>where
K: Send,
impl<K> Sync for HealthError<K>where
K: Sync,
impl<K> Unpin for HealthError<K>where
K: Unpin,
impl<K> UnsafeUnpin for HealthError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for HealthError<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