pub struct OutputCursor { /* private fields */ }Expand description
Independent read position for one pane-output subscriber.
Implementations§
Source§impl OutputCursor
impl OutputCursor
Sourcepub const fn new(next_sequence: u64) -> Self
pub const fn new(next_sequence: u64) -> Self
Creates a cursor that will next read next_sequence.
Sourcepub const fn next_sequence(&self) -> u64
pub const fn next_sequence(&self) -> u64
Returns the next sequence this cursor expects to read.
Sourcepub const fn missed_events(&self) -> u64
pub const fn missed_events(&self) -> u64
Returns the total number of events this cursor has explicitly missed.
Trait Implementations§
Source§impl Clone for OutputCursor
impl Clone for OutputCursor
Source§fn clone(&self) -> OutputCursor
fn clone(&self) -> OutputCursor
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 OutputCursor
impl Debug for OutputCursor
impl Eq for OutputCursor
Source§impl PartialEq for OutputCursor
impl PartialEq for OutputCursor
Source§fn eq(&self, other: &OutputCursor) -> bool
fn eq(&self, other: &OutputCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputCursor
Auto Trait Implementations§
impl Freeze for OutputCursor
impl RefUnwindSafe for OutputCursor
impl Send for OutputCursor
impl Sync for OutputCursor
impl Unpin for OutputCursor
impl UnsafeUnpin for OutputCursor
impl UnwindSafe for OutputCursor
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