pub struct HealthCheckOptions {
pub requirement: HealthCheckRequirement,
pub timeout: Option<Duration>,
pub scopes: HealthCheckScopes,
}Expand description
Options applied to a registered health check.
Fields§
§requirement: HealthCheckRequirementWhether framework-level failures make the component unhealthy or degraded.
timeout: Option<Duration>Optional per-component timeout.
scopes: HealthCheckScopesHealth scopes that should include this check.
Implementations§
Source§impl HealthCheckOptions
impl HealthCheckOptions
Sourcepub const fn with_timeout(self, timeout: Option<Duration>) -> Self
pub const fn with_timeout(self, timeout: Option<Duration>) -> Self
Returns options with a different timeout.
Sourcepub const fn with_scopes(self, scopes: HealthCheckScopes) -> Self
pub const fn with_scopes(self, scopes: HealthCheckScopes) -> Self
Returns options with different scope membership.
Trait Implementations§
Source§impl Clone for HealthCheckOptions
impl Clone for HealthCheckOptions
Source§fn clone(&self) -> HealthCheckOptions
fn clone(&self) -> HealthCheckOptions
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 HealthCheckOptions
impl Debug for HealthCheckOptions
Source§impl Default for HealthCheckOptions
impl Default for HealthCheckOptions
Source§impl PartialEq for HealthCheckOptions
impl PartialEq for HealthCheckOptions
Source§fn eq(&self, other: &HealthCheckOptions) -> bool
fn eq(&self, other: &HealthCheckOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HealthCheckOptions
impl Eq for HealthCheckOptions
impl StructuralPartialEq for HealthCheckOptions
Auto Trait Implementations§
impl Freeze for HealthCheckOptions
impl RefUnwindSafe for HealthCheckOptions
impl Send for HealthCheckOptions
impl Sync for HealthCheckOptions
impl Unpin for HealthCheckOptions
impl UnsafeUnpin for HealthCheckOptions
impl UnwindSafe for HealthCheckOptions
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.