Struct concread::internals::lincowcell::LinCowCell
source · [−]pub struct LinCowCell<T, R, U> { /* private fields */ }
Expand description
A concurrently readable cell with linearised drop behaviour.
Implementations
sourceimpl<T, R, U> LinCowCell<T, R, U> where
T: LinCowCellCapable<R, U>,
impl<T, R, U> LinCowCell<T, R, U> where
T: LinCowCellCapable<R, U>,
sourcepub fn read(&self) -> LinCowCellReadTxn<'_, T, R, U>
pub fn read(&self) -> LinCowCellReadTxn<'_, T, R, U>
Begin a read txn
sourcepub fn write(&self) -> LinCowCellWriteTxn<'_, T, R, U>
pub fn write(&self) -> LinCowCellWriteTxn<'_, T, R, U>
Begin a write txn
sourcepub fn try_write(&self) -> Option<LinCowCellWriteTxn<'_, T, R, U>>
pub fn try_write(&self) -> Option<LinCowCellWriteTxn<'_, T, R, U>>
Attempt a write txn
Trait Implementations
Auto Trait Implementations
impl<T, R, U> RefUnwindSafe for LinCowCell<T, R, U> where
U: RefUnwindSafe,
impl<T, R, U> Send for LinCowCell<T, R, U> where
R: Send + Sync,
T: Send,
U: Send,
impl<T, R, U> Sync for LinCowCell<T, R, U> where
R: Send + Sync,
T: Send,
U: Sync,
impl<T, R, U> Unpin for LinCowCell<T, R, U> where
T: Unpin,
U: Unpin,
impl<T, R, U> UnwindSafe for LinCowCell<T, R, U> where
U: UnwindSafe,
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