pub struct OrbitEventCursor { /* private fields */ }Expand description
Cursor for one event subscriber.
The cursor stores the next ring counter the subscriber should try to read. It is intentionally caller-owned so different consumers can advance independently.
Implementations§
Source§impl OrbitEventCursor
impl OrbitEventCursor
Sourcepub const fn from_start() -> Self
pub const fn from_start() -> Self
Start from the beginning of the ring history that is still available.
Sourcepub const fn from_counter(next_counter: u64) -> Self
pub const fn from_counter(next_counter: u64) -> Self
Start from a known next counter.
Sourcepub const fn next_counter(self) -> u64
pub const fn next_counter(self) -> u64
The next counter this cursor will read.
Trait Implementations§
Source§impl Clone for OrbitEventCursor
impl Clone for OrbitEventCursor
Source§fn clone(&self) -> OrbitEventCursor
fn clone(&self) -> OrbitEventCursor
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 OrbitEventCursor
impl Debug for OrbitEventCursor
Source§impl PartialEq for OrbitEventCursor
impl PartialEq for OrbitEventCursor
Source§fn eq(&self, other: &OrbitEventCursor) -> bool
fn eq(&self, other: &OrbitEventCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OrbitEventCursor
impl Eq for OrbitEventCursor
impl StructuralPartialEq for OrbitEventCursor
Auto Trait Implementations§
impl Freeze for OrbitEventCursor
impl RefUnwindSafe for OrbitEventCursor
impl Send for OrbitEventCursor
impl Sync for OrbitEventCursor
impl Unpin for OrbitEventCursor
impl UnsafeUnpin for OrbitEventCursor
impl UnwindSafe for OrbitEventCursor
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