Struct embassy_sync::blocking_mutex::ThreadModeMutex
source · pub struct ThreadModeMutex<T: ?Sized> { /* private fields */ }
Expand description
A “mutex” that only allows borrowing from thread mode.
Safety
This Mutex is only safe on single-core systems.
On multi-core systems, a ThreadModeMutex
is not sufficient to ensure exclusive access.
Implementations§
source§impl<T> ThreadModeMutex<T>
impl<T> ThreadModeMutex<T>
source§impl<T: ?Sized> ThreadModeMutex<T>
impl<T: ?Sized> ThreadModeMutex<T>
Trait Implementations§
source§impl<T: ?Sized> Drop for ThreadModeMutex<T>
impl<T: ?Sized> Drop for ThreadModeMutex<T>
impl<T: ?Sized> Send for ThreadModeMutex<T>
impl<T: ?Sized> Sync for ThreadModeMutex<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ThreadModeMutex<T>
impl<T: ?Sized> Unpin for ThreadModeMutex<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for ThreadModeMutex<T>where T: UnwindSafe,
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