pub struct OutputGap { /* private fields */ }Expand description
Explicit report for output events that no longer fit in the ring.
Implementations§
Source§impl OutputGap
impl OutputGap
Sourcepub const fn expected_sequence(&self) -> u64
pub const fn expected_sequence(&self) -> u64
Returns the sequence the cursor expected before lag was detected.
Sourcepub const fn resume_sequence(&self) -> u64
pub const fn resume_sequence(&self) -> u64
Returns the oldest retained sequence the cursor can resume from.
Sourcepub const fn missed_events(&self) -> u64
pub const fn missed_events(&self) -> u64
Returns the number of events skipped by this gap.
Sourcepub fn missed_range(&self) -> Range<u64>
pub fn missed_range(&self) -> Range<u64>
Returns the half-open output sequence range skipped by this gap.
Sourcepub const fn newest_sequence(&self) -> u64
pub const fn newest_sequence(&self) -> u64
Returns the newest appended sequence when the gap was reported.
Sourcepub const fn recent_snapshot(&self) -> &RecentOutputSnapshot
pub const fn recent_snapshot(&self) -> &RecentOutputSnapshot
Returns the bounded recent live bytes available at gap detection time.
Trait Implementations§
impl Eq for OutputGap
impl StructuralPartialEq for OutputGap
Auto Trait Implementations§
impl Freeze for OutputGap
impl RefUnwindSafe for OutputGap
impl Send for OutputGap
impl Sync for OutputGap
impl Unpin for OutputGap
impl UnsafeUnpin for OutputGap
impl UnwindSafe for OutputGap
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