atomr_remote/
failure_detector.rs1use std::time::Duration;
4
5pub trait FailureDetector: Send + Sync {
6 fn is_available(&self) -> bool;
7 fn is_monitoring(&self) -> bool;
8 fn heartbeat(&self);
9 fn reset(&self);
10 fn since_last_heartbeat(&self) -> Option<Duration>;
11}