pub struct HealthChecker { /* private fields */ }
Expand description
Health checker system
Implementations§
Source§impl HealthChecker
impl HealthChecker
pub fn new() -> Self
pub fn add_check( &mut self, name: &str, check: Box<dyn Fn() -> Result<HealthStatus, McpError> + Send + Sync>, )
pub async fn check_health(&self) -> HealthReport
Trait Implementations§
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