pub struct KMutexGuard<'a, Class: LockClass, M: RawLock = RawMutex> { /* private fields */ }Expand description
A validation guard representing exclusive lock ownership and active list participation.
The guard is pinned in memory to ensure that its lock_entry pointer remains safe and valid
inside the C++ loop detector active thread list.
Implementations§
Source§impl<'a, Class: LockClass, M: RawLock> KMutexGuard<'a, Class, M>
impl<'a, Class: LockClass, M: RawLock> KMutexGuard<'a, Class, M>
Source§impl<'a, Class: LockClass, M: RawLock> KMutexGuard<'a, Class, M>
impl<'a, Class: LockClass, M: RawLock> KMutexGuard<'a, Class, M>
Trait Implementations§
Source§impl<'a, Class: LockClass, M: RawLock> Drop for KMutexGuard<'a, Class, M>
impl<'a, Class: LockClass, M: RawLock> Drop for KMutexGuard<'a, Class, M>
Source§impl<'a, Class: LockClass, M: RawLock> HasPinData for KMutexGuard<'a, Class, M>
impl<'a, Class: LockClass, M: RawLock> HasPinData for KMutexGuard<'a, Class, M>
Source§impl<'a, Class: LockClass, M: RawLock> PinnedDrop for KMutexGuard<'a, Class, M>
impl<'a, Class: LockClass, M: RawLock> PinnedDrop for KMutexGuard<'a, Class, M>
Auto Trait Implementations§
impl<'a, Class, M> Freeze for KMutexGuard<'a, Class, M>
impl<'a, Class, M> RefUnwindSafe for KMutexGuard<'a, Class, M>where
<M as RawLock>::LockEntry: RefUnwindSafe,
<M as RawLock>::GuardState: RefUnwindSafe,
M: RefUnwindSafe,
Class: RefUnwindSafe,
impl<'a, Class, M = RawMutex> !Send for KMutexGuard<'a, Class, M>
impl<'a, Class, M = RawMutex> !Sync for KMutexGuard<'a, Class, M>
impl<'a, Class, M> UnsafeUnpin for KMutexGuard<'a, Class, M>
impl<'a, Class, M> UnwindSafe for KMutexGuard<'a, Class, M>where
<M as RawLock>::LockEntry: UnwindSafe,
<M as RawLock>::GuardState: UnwindSafe,
M: RefUnwindSafe,
Class: RefUnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more