pub struct HealthCheckManager { /* private fields */ }Expand description
Manages in-flight health check requests using promises.
Similar to LabelsManager, but specifically for checking
backend connectivity and version information.
Implementations§
Source§impl HealthCheckManager
impl HealthCheckManager
Sourcepub fn is_checking(&self) -> bool
pub fn is_checking(&self) -> bool
Check if a health check is currently in flight.
Sourcepub fn check<C: MetricsClient + ?Sized>(&mut self, client: &C, ctx: &Context)
pub fn check<C: MetricsClient + ?Sized>(&mut self, client: &C, ctx: &Context)
Initiate a health check on the given client.
If a check is already in flight, this does nothing.
Sourcepub fn poll(&mut self) -> Option<HealthCheckResult>
pub fn poll(&mut self) -> Option<HealthCheckResult>
Poll for the health check result.
Returns Some(result) if a check just completed, None otherwise.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HealthCheckManager
impl !RefUnwindSafe for HealthCheckManager
impl Send for HealthCheckManager
impl !Sync for HealthCheckManager
impl Unpin for HealthCheckManager
impl UnsafeUnpin for HealthCheckManager
impl UnwindSafe for HealthCheckManager
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