pub struct ContainerHealthChecker { /* private fields */ }
Expand description
Health check system for container
Implementations§
Source§impl ContainerHealthChecker
impl ContainerHealthChecker
Sourcepub fn new(container: Arc<IocContainer>) -> Self
pub fn new(container: Arc<IocContainer>) -> Self
Create a new health checker
Sourcepub fn add_check(&mut self, check: Box<dyn HealthCheck>)
pub fn add_check(&mut self, check: Box<dyn HealthCheck>)
Add a custom health check
Sourcepub async fn check_health(&self) -> HealthReport
pub async fn check_health(&self) -> HealthReport
Run all health checks
Auto Trait Implementations§
impl Freeze for ContainerHealthChecker
impl !RefUnwindSafe for ContainerHealthChecker
impl Send for ContainerHealthChecker
impl Sync for ContainerHealthChecker
impl Unpin for ContainerHealthChecker
impl !UnwindSafe for ContainerHealthChecker
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