pub struct ConsumerBacklog {
pub checkpoint_name: String,
pub checkpoint: CheckpointData,
pub segments_behind: usize,
pub bytes_behind: u64,
pub lag: Option<Duration>,
}Expand description
How far one consumer’s checkpoint trails the newest data in the log directory.
Fields§
§checkpoint_name: StringThe checkpoint_name with which the consumer was configured
checkpoint: CheckpointDataWhere the consumer’s reading has reached.
segments_behind: usizeCount of whole segments ordered after the segment defined by checkpoint.
bytes_behind: u64Total compressed size, in bytes, of the segments counted by
segments_behind. Excludes the remainder of the segment that contains
the checkpoint, because measuring that would require decompressing it to
find the recorded line.
lag: Option<Duration>Age of the oldest segment not started by the consumer, measured from its
modification time, approximating how long the oldest unread data has
waited. None when the consumer has reached the newest segment.
Trait Implementations§
Source§impl Clone for ConsumerBacklog
impl Clone for ConsumerBacklog
Source§fn clone(&self) -> ConsumerBacklog
fn clone(&self) -> ConsumerBacklog
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 moreSource§impl Debug for ConsumerBacklog
impl Debug for ConsumerBacklog
Source§impl PartialEq for ConsumerBacklog
impl PartialEq for ConsumerBacklog
Source§impl Serialize for ConsumerBacklog
impl Serialize for ConsumerBacklog
impl StructuralPartialEq for ConsumerBacklog
Auto Trait Implementations§
impl Freeze for ConsumerBacklog
impl RefUnwindSafe for ConsumerBacklog
impl Send for ConsumerBacklog
impl Sync for ConsumerBacklog
impl Unpin for ConsumerBacklog
impl UnwindSafe for ConsumerBacklog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more