pub enum CursorKind {
Intent,
Commit,
}Expand description
Which half of a batch a record represents.
The discriminants are deliberately neither 0x00 nor 0xFF, so an erased
page and a page of zeros are both rejected before the CRC is even consulted.
Variants§
Intent
Written before a batch is copied. Records where the batch starts.
Commit
Written after a batch is durable. Records where the batch ends.
Trait Implementations§
Source§impl Clone for CursorKind
impl Clone for CursorKind
impl Copy for CursorKind
Source§impl Debug for CursorKind
impl Debug for CursorKind
impl Eq for CursorKind
Source§impl Format for CursorKind
Available on crate feature defmt only.
impl Format for CursorKind
Available on crate feature
defmt only.Source§impl PartialEq for CursorKind
impl PartialEq for CursorKind
impl StructuralPartialEq for CursorKind
Auto Trait Implementations§
impl Freeze for CursorKind
impl RefUnwindSafe for CursorKind
impl Send for CursorKind
impl Sync for CursorKind
impl Unpin for CursorKind
impl UnsafeUnpin for CursorKind
impl UnwindSafe for CursorKind
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