pub struct HealthChecker { /* private fields */ }Expand description
Health checker implementation
Implementations§
Source§impl HealthChecker
impl HealthChecker
Sourcepub fn new(config: MonitorConfig) -> Self
pub fn new(config: MonitorConfig) -> Self
Create a new health checker
Sourcepub async fn start_monitoring(&self)
pub async fn start_monitoring(&self)
Start health monitoring
Sourcepub async fn perform_health_checks(&self) -> Vec<HealthCheck>
pub async fn perform_health_checks(&self) -> Vec<HealthCheck>
Perform all health checks
Sourcepub fn get_health_status(&self) -> Vec<HealthCheck>
pub fn get_health_status(&self) -> Vec<HealthCheck>
Get current health status
Sourcepub fn get_overall_status(&self) -> HealthStatus
pub fn get_overall_status(&self) -> HealthStatus
Get overall health status
Trait Implementations§
Source§impl Clone for HealthChecker
impl Clone for HealthChecker
Source§fn clone(&self) -> HealthChecker
fn clone(&self) -> HealthChecker
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HealthChecker
impl !RefUnwindSafe for HealthChecker
impl Send for HealthChecker
impl Sync for HealthChecker
impl Unpin for HealthChecker
impl !UnwindSafe for HealthChecker
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