pub struct Keeper { /* private fields */ }Implementations§
Source§impl Keeper
impl Keeper
pub fn new() -> Self
pub fn running(&self) -> bool
pub fn add_check( &mut self, id: u32, name: &str, interval: u64, timeout: u64, max_failures: u32, )
pub fn report_ok(&mut self, id: u32, now: u64)
pub fn report_failure(&mut self, id: u32, now: u64)
pub fn tick(&mut self, now: u64) -> Vec<String>
pub fn get_status(&self, id: u32) -> Option<&HealthCheck>
pub fn is_healthy(&self) -> bool
pub fn critical_count(&self) -> usize
pub fn check_ids(&self) -> Vec<u32>
pub fn remove_check(&mut self, id: u32)
pub fn reset(&mut self, id: u32)
pub fn alert_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for Keeper
impl RefUnwindSafe for Keeper
impl Send for Keeper
impl Sync for Keeper
impl Unpin for Keeper
impl UnsafeUnpin for Keeper
impl UnwindSafe for Keeper
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