pub struct CowCellWriteTxn<'a, T: 'a> { /* private fields */ }
Expand description
A CowCell
Write Transaction handle.
This allows mutation of the content of the CowCell
without blocking or
affecting current readers.
Changes are only stored in this structure until you call commit. To abort/
rollback a change, don’t call commit and allow the write transaction to
be dropped. This causes the CowCell
to unlock allowing the next writer
to proceed.
Implementations
Trait Implementations
sourceimpl<'a, T> Deref for CowCellWriteTxn<'a, T> where
T: Clone,
impl<'a, T> Deref for CowCellWriteTxn<'a, T> where
T: Clone,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for CowCellWriteTxn<'a, T>
impl<'a, T> Send for CowCellWriteTxn<'a, T> where
T: Send + Sync,
impl<'a, T> Sync for CowCellWriteTxn<'a, T> where
T: Send + Sync,
impl<'a, T> Unpin for CowCellWriteTxn<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for CowCellWriteTxn<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more