pub trait FailureDetector: Send + Sync {
// Required methods
fn is_available(&self) -> bool;
fn is_monitoring(&self) -> bool;
fn heartbeat(&self);
fn reset(&self);
fn since_last_heartbeat(&self) -> Option<Duration>;
}pub trait FailureDetector: Send + Sync {
// Required methods
fn is_available(&self) -> bool;
fn is_monitoring(&self) -> bool;
fn heartbeat(&self);
fn reset(&self);
fn since_last_heartbeat(&self) -> Option<Duration>;
}