pub struct OrbitEventCursor { /* private fields */ }Expand description
Cursor for one event subscriber.
The cursor stores one next counter per node lane. 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 fn next_counter(&self) -> u64
pub fn next_counter(&self) -> u64
The lowest next counter among the node lanes.
Trait Implementations§
Source§impl Clone for OrbitEventCursor
impl Clone for OrbitEventCursor
Source§impl Debug for OrbitEventCursor
impl Debug for OrbitEventCursor
impl Eq for OrbitEventCursor
Source§impl PartialEq for OrbitEventCursor
impl PartialEq 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