[−][src]Trait xtensa_lx::mutex::Mutex
Any object implementing this trait guarantees exclusive access to the data contained within the mutex for the duration of the lock.
Associated Types
type Data
Data protected by the mutex.
Required methods
fn lock<R>(&mut self, f: impl FnOnce(&mut Self::Data) -> R) -> R
Creates a critical section and grants temporary access to the protected data.
Implementations on Foreign Types
impl<'_, T> Mutex for &'_ RefCell<T>
[src]
impl<'a, T> Mutex for Exclusive<'a, T>
[src]
Loading content...Implementors
impl<'_, L> Mutex for &'_ mut L where
L: Mutex,
[src]
L: Mutex,