pub struct ReadCursor {
pub next: LogPosition,
pub entries: u32,
pub exhausted: bool,
pub gap: bool,
}Expand description
Outcome of a SensorDb::read_from pass.
Fields§
§next: LogPositionPosition immediately after the last entry delivered — pass this back as
from to continue where this pass stopped.
entries: u32Number of entries delivered to the callback in this pass.
exhausted: boolNo further durable entries exist after next.
False when the pass stopped because it hit max_entries or because the
callback asked to stop.
gap: boolThe requested from had already fallen off the tail of the ring, so
entries between it and the oldest retained sector were skipped.
This is not an error: it is the expected consequence of the log wrapping while a replication target was unavailable.
Trait Implementations§
Source§impl Clone for ReadCursor
impl Clone for ReadCursor
impl Copy for ReadCursor
Source§impl Debug for ReadCursor
impl Debug for ReadCursor
impl Eq for ReadCursor
Source§impl Format for ReadCursorwhere
LogPosition: Format,
Available on crate feature defmt only.
impl Format for ReadCursorwhere
LogPosition: Format,
Available on crate feature
defmt only.Source§impl PartialEq for ReadCursor
impl PartialEq for ReadCursor
impl StructuralPartialEq for ReadCursor
Auto Trait Implementations§
impl Freeze for ReadCursor
impl RefUnwindSafe for ReadCursor
impl Send for ReadCursor
impl Sync for ReadCursor
impl Unpin for ReadCursor
impl UnsafeUnpin for ReadCursor
impl UnwindSafe for ReadCursor
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