pub struct HealthCheckTask { /* private fields */ }Expand description
Background health check task
Implementations§
Source§impl HealthCheckTask
impl HealthCheckTask
Sourcepub fn new(watchdog: RunHealthWatchdog) -> Self
pub fn new(watchdog: RunHealthWatchdog) -> Self
Create a new health check task
Sourcepub fn check(&mut self) -> HealthCheckResult
pub fn check(&mut self) -> HealthCheckResult
Run a single health check
Sourcepub fn watchdog(&self) -> &RunHealthWatchdog
pub fn watchdog(&self) -> &RunHealthWatchdog
Get the watchdog
Sourcepub fn watchdog_mut(&mut self) -> &mut RunHealthWatchdog
pub fn watchdog_mut(&mut self) -> &mut RunHealthWatchdog
Get mutable watchdog
Auto Trait Implementations§
impl Freeze for HealthCheckTask
impl RefUnwindSafe for HealthCheckTask
impl Send for HealthCheckTask
impl Sync for HealthCheckTask
impl Unpin for HealthCheckTask
impl UnsafeUnpin for HealthCheckTask
impl UnwindSafe for HealthCheckTask
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