pub struct MutexStorage { /* private fields */ }Expand description
Caller-owned backing storage for a Mutex in zero-heap mode. Declare
it in a static and hand &STORAGE to Mutex::create; in heap mode the
storage is ignored. Mirrors [crate::ThreadStorage] — const fn new()
makes it usable from a static, and the bytes are only ever handed to C as
a raw pointer (the kernel owns the object’s synchronisation).
Implementations§
Source§impl MutexStorage
impl MutexStorage
Trait Implementations§
Source§impl Default for MutexStorage
impl Default for MutexStorage
impl Sync for MutexStorage
Auto Trait Implementations§
impl !Freeze for MutexStorage
impl !RefUnwindSafe for MutexStorage
impl Send for MutexStorage
impl Unpin for MutexStorage
impl UnsafeUnpin for MutexStorage
impl UnwindSafe for MutexStorage
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