pub struct HealthChecker { /* private fields */ }Expand description
Health checker for monitoring node health
Implementations§
Source§impl HealthChecker
impl HealthChecker
Sourcepub async fn register(&self, name: String, initial_status: HealthStatus)
pub async fn register(&self, name: String, initial_status: HealthStatus)
Register a node for health checking
Sourcepub async fn update(&self, name: &str, status: HealthStatus)
pub async fn update(&self, name: &str, status: HealthStatus)
Update health status for a node
Sourcepub async fn check_one(&self, name: &str) -> Option<HealthStatus>
pub async fn check_one(&self, name: &str) -> Option<HealthStatus>
Get health status for a specific node
Sourcepub async fn check_all(&self) -> HashMap<String, HealthStatus>
pub async fn check_all(&self) -> HashMap<String, HealthStatus>
Get health status for all nodes
Sourcepub async fn unregister(&self, name: &str)
pub async fn unregister(&self, name: &str)
Remove a node from health checking
Auto 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