pub struct LagMeasurement {
pub current: Duration,
pub average: Duration,
pub max: Duration,
pub timestamp: Instant,
pub samples: u64,
}Expand description
Lag measurement for a replica.
Fields§
§current: DurationCurrent lag.
average: DurationAverage lag.
max: DurationMaximum observed lag.
timestamp: InstantTimestamp of measurement.
samples: u64Number of samples.
Trait Implementations§
Source§impl Clone for LagMeasurement
impl Clone for LagMeasurement
Source§fn clone(&self) -> LagMeasurement
fn clone(&self) -> LagMeasurement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LagMeasurement
impl RefUnwindSafe for LagMeasurement
impl Send for LagMeasurement
impl Sync for LagMeasurement
impl Unpin for LagMeasurement
impl UnwindSafe for LagMeasurement
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