pub struct LagMonitor { /* private fields */ }Expand description
Monitor for tracking replication lag.
Implementations§
Source§impl LagMonitor
impl LagMonitor
Sourcepub fn is_acceptable(&self, replica_id: &str) -> bool
pub fn is_acceptable(&self, replica_id: &str) -> bool
Check if a replica is within acceptable lag.
Sourcepub fn get_lagging_replicas(&self) -> Vec<&str>
pub fn get_lagging_replicas(&self) -> Vec<&str>
Get all replicas that are lagging too much.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LagMonitor
impl RefUnwindSafe for LagMonitor
impl Send for LagMonitor
impl Sync for LagMonitor
impl Unpin for LagMonitor
impl UnwindSafe for LagMonitor
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