[−][src]Struct concread::ebrcell::EbrCellWriteTxn
An EbrCell Write Transaction handle.
This allows mutation of the content of the EbrCell without blocking or
affecting current readers.
Changes are only stored in the structure until you call commit: to
abort a change, don't call commit and allow the write transaction to
go out of scope. This causes the EbrCell to unlock allowing other
writes to proceed.
Implementations
impl<'a, T> EbrCellWriteTxn<'a, T> where
T: Clone + Send + 'static, [src]
T: Clone + Send + 'static,
pub fn get_mut(&mut self) -> &mut T[src]
Access a mutable pointer of the data in the EbrCell. This data is only
visible to this write transaction object in this thread until you call
'commit'.
pub fn commit(self)[src]
Commit the changes in this write transaction to the EbrCell. This will
consume the transaction so that further changes can not be made to it
after this function is called.
Trait Implementations
impl<'a, T> Deref for EbrCellWriteTxn<'a, T> where
T: Clone + Send, [src]
T: Clone + Send,
impl<'a, T> DerefMut for EbrCellWriteTxn<'a, T> where
T: Clone + Send, [src]
T: Clone + Send,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for EbrCellWriteTxn<'a, T>
impl<'a, T> !Send for EbrCellWriteTxn<'a, T>
impl<'a, T> Sync for EbrCellWriteTxn<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for EbrCellWriteTxn<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> !UnwindSafe for EbrCellWriteTxn<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,