pub struct RawSpinlock { /* private fields */ }Expand description
Opaque layout block matching the Zircon C++ SpinLock exactly.
Implementations§
Source§impl RawSpinlock
impl RawSpinlock
Trait Implementations§
Source§impl Drop for RawSpinlock
impl Drop for RawSpinlock
Source§impl HasPinData for RawSpinlock
impl HasPinData for RawSpinlock
Source§impl PinnedDrop for RawSpinlock
impl PinnedDrop for RawSpinlock
Source§impl RawLock for RawSpinlock
impl RawLock for RawSpinlock
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 = InterruptSavedState
type GuardState = InterruptSavedState
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 RawSpinlock
impl Sync for RawSpinlock
Auto Trait Implementations§
impl !Freeze for RawSpinlock
impl !RefUnwindSafe for RawSpinlock
impl UnsafeUnpin for RawSpinlock
impl UnwindSafe for RawSpinlock
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