pub struct HealthCheckDescriptor {
pub name: &'static str,
pub requirement: HealthCheckRequirement,
pub timeout: Option<Duration>,
pub scopes: HealthCheckScopes,
}Expand description
Static description of a registered health check.
Fields§
§name: &'static strStable component name, such as database, cache, or storage.
requirement: HealthCheckRequirementWhether framework-level failures make the component unhealthy or degraded.
timeout: Option<Duration>Optional per-component timeout.
scopes: HealthCheckScopesHealth scopes that include this check.
Trait Implementations§
Source§impl Clone for HealthCheckDescriptor
impl Clone for HealthCheckDescriptor
Source§fn clone(&self) -> HealthCheckDescriptor
fn clone(&self) -> HealthCheckDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthCheckDescriptor
impl Debug for HealthCheckDescriptor
Source§impl PartialEq for HealthCheckDescriptor
impl PartialEq for HealthCheckDescriptor
Source§fn eq(&self, other: &HealthCheckDescriptor) -> bool
fn eq(&self, other: &HealthCheckDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HealthCheckDescriptor
impl Eq for HealthCheckDescriptor
impl StructuralPartialEq for HealthCheckDescriptor
Auto Trait Implementations§
impl Freeze for HealthCheckDescriptor
impl RefUnwindSafe for HealthCheckDescriptor
impl Send for HealthCheckDescriptor
impl Sync for HealthCheckDescriptor
impl Unpin for HealthCheckDescriptor
impl UnsafeUnpin for HealthCheckDescriptor
impl UnwindSafe for HealthCheckDescriptor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.