pub struct HealthRegistry { /* private fields */ }Expand description
Health check registry for all modules.
Implementations§
Source§impl HealthRegistry
impl HealthRegistry
Sourcepub fn get_or_create(&self, module_name: &str) -> Arc<HealthTracker>
pub fn get_or_create(&self, module_name: &str) -> Arc<HealthTracker>
Gets or creates a health tracker.
Sourcepub async fn unhealthy_modules(&self) -> Vec<String>
pub async fn unhealthy_modules(&self) -> Vec<String>
Returns all unhealthy modules.
Sourcepub async fn summary(&self) -> HealthSummary
pub async fn summary(&self) -> HealthSummary
Returns overall health summary.
Trait Implementations§
Source§impl Debug for HealthRegistry
impl Debug for HealthRegistry
Auto Trait Implementations§
impl Freeze for HealthRegistry
impl !RefUnwindSafe for HealthRegistry
impl Send for HealthRegistry
impl Sync for HealthRegistry
impl Unpin for HealthRegistry
impl UnsafeUnpin for HealthRegistry
impl !UnwindSafe for HealthRegistry
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