pub struct CursorScan {
pub resume: LogPosition,
pub last_batch_id: u32,
pub in_flight: u32,
pub in_flight_dest: LogPosition,
pub active: u8,
pub next_slot: u32,
pub found: bool,
}Expand description
Outcome of reading every slot in the cursor region.
Fields§
§resume: LogPositionSafe source position to resume from.
last_batch_id: u32Highest batch id found.
in_flight: u32Entries an unfinished batch may duplicate.
in_flight_dest: LogPositionReplica position the unfinished batch’s first entry landed at.
Reading the replica forward from here counts what the batch actually
managed to store, which is what turns the in_flight
bound into an exact answer. Meaningless when in_flight is zero.
active: u8Cursor sector to append the next record to.
next_slot: u32Next free slot in active.
found: boolWhether any valid record was found at all.
Trait Implementations§
Source§impl Clone for CursorScan
impl Clone for CursorScan
impl Copy for CursorScan
Source§impl Debug for CursorScan
impl Debug for CursorScan
Source§impl Default for CursorScan
impl Default for CursorScan
impl Eq for CursorScan
Source§impl Format for CursorScanwhere
LogPosition: Format,
Available on crate feature defmt only.
impl Format for CursorScanwhere
LogPosition: Format,
Available on crate feature
defmt only.Source§impl PartialEq for CursorScan
impl PartialEq for CursorScan
impl StructuralPartialEq for CursorScan
Auto Trait Implementations§
impl Freeze for CursorScan
impl RefUnwindSafe for CursorScan
impl Send for CursorScan
impl Sync for CursorScan
impl Unpin for CursorScan
impl UnsafeUnpin for CursorScan
impl UnwindSafe for CursorScan
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