pub struct HealthCheckScopes { /* private fields */ }Expand description
Scope membership for a registered health check.
Implementations§
Source§impl HealthCheckScopes
impl HealthCheckScopes
Sourcepub const fn diagnostics() -> Self
pub const fn diagnostics() -> Self
Includes the check only in diagnostics runs.
Sourcepub const fn readiness_and_diagnostics() -> Self
pub const fn readiness_and_diagnostics() -> Self
Includes the check in readiness and diagnostics runs.
Sourcepub const fn contains(self, scope: HealthCheckScope) -> bool
pub const fn contains(self, scope: HealthCheckScope) -> bool
Returns whether this set includes scope.
Trait Implementations§
Source§impl Clone for HealthCheckScopes
impl Clone for HealthCheckScopes
Source§fn clone(&self) -> HealthCheckScopes
fn clone(&self) -> HealthCheckScopes
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 HealthCheckScopes
impl Debug for HealthCheckScopes
Source§impl Default for HealthCheckScopes
impl Default for HealthCheckScopes
Source§impl PartialEq for HealthCheckScopes
impl PartialEq for HealthCheckScopes
Source§fn eq(&self, other: &HealthCheckScopes) -> bool
fn eq(&self, other: &HealthCheckScopes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HealthCheckScopes
impl Eq for HealthCheckScopes
impl StructuralPartialEq for HealthCheckScopes
Auto Trait Implementations§
impl Freeze for HealthCheckScopes
impl RefUnwindSafe for HealthCheckScopes
impl Send for HealthCheckScopes
impl Sync for HealthCheckScopes
impl Unpin for HealthCheckScopes
impl UnsafeUnpin for HealthCheckScopes
impl UnwindSafe for HealthCheckScopes
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.