[][src]Struct concread::ebrcell::EbrCellWriteTxn

pub struct EbrCellWriteTxn<'a, T: 'static + Clone + Send> { /* fields omitted */ }

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]

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]

type Target = T

The resulting type after dereferencing.

impl<'a, T> DerefMut for EbrCellWriteTxn<'a, T> where
    T: Clone + Send
[src]

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

impl<'a, T> Unpin for EbrCellWriteTxn<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for EbrCellWriteTxn<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.