pub struct PiMutexOwnerSnapshot { /* private fields */ }Expand description
Atomic owner snapshot serialized with a provider’s waiter-tree lock.
Implementations§
Source§impl PiMutexOwnerSnapshot
impl PiMutexOwnerSnapshot
Sourcepub const fn is_unlocked(self) -> bool
pub const fn is_unlocked(self) -> bool
Returns whether the physical mutex is fully unlocked.
Sourcepub const fn is_ownerless(self) -> bool
pub const fn is_ownerless(self) -> bool
Returns whether unlock reserved an ownerless waiter handoff.
Sourcepub const fn has_waiters(self) -> bool
pub const fn has_waiters(self) -> bool
Returns whether the slow path owns waiter metadata.
Trait Implementations§
Source§impl Clone for PiMutexOwnerSnapshot
impl Clone for PiMutexOwnerSnapshot
Source§fn clone(&self) -> PiMutexOwnerSnapshot
fn clone(&self) -> PiMutexOwnerSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PiMutexOwnerSnapshot
Source§impl Debug for PiMutexOwnerSnapshot
impl Debug for PiMutexOwnerSnapshot
impl Eq for PiMutexOwnerSnapshot
Source§impl PartialEq for PiMutexOwnerSnapshot
impl PartialEq for PiMutexOwnerSnapshot
impl StructuralPartialEq for PiMutexOwnerSnapshot
Auto Trait Implementations§
impl Freeze for PiMutexOwnerSnapshot
impl RefUnwindSafe for PiMutexOwnerSnapshot
impl Send for PiMutexOwnerSnapshot
impl Sync for PiMutexOwnerSnapshot
impl Unpin for PiMutexOwnerSnapshot
impl UnsafeUnpin for PiMutexOwnerSnapshot
impl UnwindSafe for PiMutexOwnerSnapshot
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