pub struct Cursor {
pub run: u64,
pub seq: u64,
}Expand description
Where a reader of a relay stands: the journal run it read and the last number it took.
Fields§
§run: u64The journal’s run (Relay::cursor); it changes when the
journal starts again (the process restarted) and numbers restart
with it. 0: the reader has read nothing yet.
seq: u64The last number taken in that run.
Implementations§
Trait Implementations§
impl Copy for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Forget for Cursor
impl Freeze for Cursor
impl Move for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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