pub struct PreparedWriteCursor<'a> { /* private fields */ }Expand description
Visits the writes of a prepared commit in order. A spilled commit is read one block at a time, and each value is loaded only when its write is returned.
Implementations§
Source§impl<'a> PreparedWriteCursor<'a>
impl<'a> PreparedWriteCursor<'a>
Sourcepub fn next(
&mut self,
control: &StorageReadControl,
) -> VersionResult<Option<PreparedRecordWrite>>
pub fn next( &mut self, control: &StorageReadControl, ) -> VersionResult<Option<PreparedRecordWrite>>
The next write with its value, or None after the last.
Sourcepub fn next_where(
&mut self,
control: &StorageReadControl,
select: impl FnMut(&PreparedWriteMetadata) -> VersionResult<bool>,
) -> VersionResult<Option<PreparedRecordWrite>>
pub fn next_where( &mut self, control: &StorageReadControl, select: impl FnMut(&PreparedWriteMetadata) -> VersionResult<bool>, ) -> VersionResult<Option<PreparedRecordWrite>>
The next selected write, testing metadata before loading its value. Skipped spilled values are neither read nor admitted to the caller’s allowance.
Sourcepub fn next_metadata(
&mut self,
control: &StorageReadControl,
) -> VersionResult<Option<PreparedWriteMetadata>>
pub fn next_metadata( &mut self, control: &StorageReadControl, ) -> VersionResult<Option<PreparedWriteMetadata>>
What the next write changes, without loading its value, or None after the last.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PreparedWriteCursor<'a>
impl<'a> !UnwindSafe for PreparedWriteCursor<'a>
impl<'a> Freeze for PreparedWriteCursor<'a>
impl<'a> Send for PreparedWriteCursor<'a>
impl<'a> Sync for PreparedWriteCursor<'a>
impl<'a> Unpin for PreparedWriteCursor<'a>
impl<'a> UnsafeUnpin for PreparedWriteCursor<'a>
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