pub struct MutexNode { /* private fields */ }
Expand description
A locally-accessible record for forming the waiting queue.
MutexNode
is an opaque type that holds metadata for the Mutex
’s
waiting queue. To acquire a MCS lock, an instance of queue node must be
reachable and mutably borrowed for the duration of some associate locking
closure. Once the closure goes out of scope, a node instance can be reused
as the backing allocation for another lock acquisition. See lock_with_then
and try_lock_with_then
methods on Mutex
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MutexNode
impl RefUnwindSafe for MutexNode
impl Send for MutexNode
impl Sync for MutexNode
impl Unpin for MutexNode
impl UnwindSafe for MutexNode
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