pub struct RecentOutputSnapshot { /* private fields */ }Expand description
Bounded recent live bytes retained alongside an output ring.
Implementations§
Source§impl RecentOutputSnapshot
impl RecentOutputSnapshot
Sourcepub fn bytes_from_sequence(&self, min_sequence: u64) -> &[u8] ⓘ
pub fn bytes_from_sequence(&self, min_sequence: u64) -> &[u8] ⓘ
Returns retained bytes whose contributing output event sequence is at
least min_sequence.
Sourcepub const fn oldest_sequence(&self) -> Option<u64>
pub const fn oldest_sequence(&self) -> Option<u64>
Returns the oldest output sequence contributing retained bytes.
Sourcepub const fn newest_sequence(&self) -> Option<u64>
pub const fn newest_sequence(&self) -> Option<u64>
Returns the newest output sequence contributing retained bytes.
Sourcepub fn oldest_sequence_at_or_after(&self, min_sequence: u64) -> Option<u64>
pub fn oldest_sequence_at_or_after(&self, min_sequence: u64) -> Option<u64>
Returns the oldest retained contributing sequence at or after
min_sequence.
Sourcepub fn starts_at_event_start(&self, sequence: u64) -> bool
pub fn starts_at_event_start(&self, sequence: u64) -> bool
Returns whether the retained bytes for sequence begin at that output
event’s first byte.
Trait Implementations§
Source§impl Clone for RecentOutputSnapshot
impl Clone for RecentOutputSnapshot
Source§fn clone(&self) -> RecentOutputSnapshot
fn clone(&self) -> RecentOutputSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecentOutputSnapshot
impl Debug for RecentOutputSnapshot
Source§impl PartialEq for RecentOutputSnapshot
impl PartialEq for RecentOutputSnapshot
Source§fn eq(&self, other: &RecentOutputSnapshot) -> bool
fn eq(&self, other: &RecentOutputSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RecentOutputSnapshot
impl StructuralPartialEq for RecentOutputSnapshot
Auto Trait Implementations§
impl Freeze for RecentOutputSnapshot
impl RefUnwindSafe for RecentOutputSnapshot
impl Send for RecentOutputSnapshot
impl Sync for RecentOutputSnapshot
impl Unpin for RecentOutputSnapshot
impl UnsafeUnpin for RecentOutputSnapshot
impl UnwindSafe for RecentOutputSnapshot
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