struct Cown<T: Send> {
last: AtomicPtr<Request>,
value: UnsafeCell<T>,
}
Expand description
The value should only be accessed inside a when!
block.
Fields§
§last: AtomicPtr<Request>
MCS lock tail.
When a new node is enqueued, the enqueuer of the previous tail node will wait until the
current enqueuer sets that node’s .next
.
value: UnsafeCell<T>
The value of this cown.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Cown<T>
impl<T> !RefUnwindSafe for Cown<T>
impl<T> Send for Cown<T>
impl<T> !Sync for Cown<T>
impl<T> Unpin for Cown<T>where
T: Unpin,
impl<T> !UnwindSafe for Cown<T>
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