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 associated
MutexGuard
. Once the guard is dropped, a node instance can be reused as
the backing allocation for another lock acquisition. See lock
and
try_lock
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