pub struct RawCriticalMutex { /* private fields */ }Expand description
Opaque layout block matching the Zircon C++ CriticalMutex exactly.
Implementations§
Trait Implementations§
Source§impl Drop for RawCriticalMutex
impl Drop for RawCriticalMutex
Source§impl HasPinData for RawCriticalMutex
impl HasPinData for RawCriticalMutex
Source§impl PinnedDrop for RawCriticalMutex
impl PinnedDrop for RawCriticalMutex
Source§impl RawLock for RawCriticalMutex
impl RawLock for RawCriticalMutex
Source§type LockEntry = LockEntryStorage
type LockEntry = LockEntryStorage
Opaque stack entry storage type used by the lock validation loop detector (e.g. LockDep).
Source§type GuardState = bool
type GuardState = bool
State returned from lock acquisition and subsequently passed to lock release.
Source§fn init() -> impl PinInit<Self, Infallible>
fn init() -> impl PinInit<Self, Infallible>
Returns a PinInit block to initialize the raw mutex in-place.
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Convert the raw mutex reference to a standard c_void pointer for FFI.
impl Send for RawCriticalMutex
impl Sync for RawCriticalMutex
Auto Trait Implementations§
impl !Freeze for RawCriticalMutex
impl !RefUnwindSafe for RawCriticalMutex
impl UnsafeUnpin for RawCriticalMutex
impl UnwindSafe for RawCriticalMutex
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