Struct concread::internals::lincowcell_async::LinCowCell
source · pub struct LinCowCell<T, R, U> { /* private fields */ }
Expand description
A concurrently readable cell with linearised drop behaviour.
Implementations§
source§impl<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 async fn write<'x>(&'x self) -> LinCowCellWriteTxn<'x, T, R, U>
pub async fn write<'x>(&'x self) -> LinCowCellWriteTxn<'x, 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> !Freeze for LinCowCell<T, R, U>
impl<T, R, U> !RefUnwindSafe for LinCowCell<T, R, U>
impl<T, R, U> Send for LinCowCell<T, R, U>
impl<T, R, U> Sync for LinCowCell<T, R, U>
impl<T, R, U> Unpin for LinCowCell<T, R, U>
impl<T, R, U> UnwindSafe for LinCowCell<T, R, U>
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