pub struct SubsetScratch { /* private fields */ }Expand description
Reusable preparation storage containing integers only, never Value owners. A failed or cancelled preparation leaves the original stream untouched.
Implementations§
Source§impl SubsetScratch
impl SubsetScratch
Sourcepub fn prepare_commit<'a>(
&'a mut self,
stream: &'a mut ConcreteSubsetStream,
) -> Option<SubsetCommit<'a>>
pub fn prepare_commit<'a>( &'a mut self, stream: &'a mut ConcreteSubsetStream, ) -> Option<SubsetCommit<'a>>
Validate the prepared position value/base length and borrow exclusively
before locking. This is not a source-identity certificate; a caller
binding predicate truth must also match ConcreteSubsetStream::belongs_to.
The returned token contains references only, not Value owners.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SubsetScratch
impl Freeze for SubsetScratch
impl Move for SubsetScratch
impl RefUnwindSafe for SubsetScratch
impl Send for SubsetScratch
impl Sync for SubsetScratch
impl Unpin for SubsetScratch
impl UnsafeUnpin for SubsetScratch
impl UnwindSafe for SubsetScratch
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