[−]Trait esp32_hal::prelude::TupleExt04
Auto-generated tuple implementation, see Mutex
for details.
Associated Types
type T1
Data protected by the mutex.
type T2
Data protected by the mutex.
type T3
Data protected by the mutex.
type T4
Data protected by the mutex.
Required methods
fn lock<R>(
&mut self,
f: impl FnOnce(&mut Self::T1, &mut Self::T2, &mut Self::T3, &mut Self::T4) -> R
) -> R
&mut self,
f: impl FnOnce(&mut Self::T1, &mut Self::T2, &mut Self::T3, &mut Self::T4) -> R
) -> R
Creates a critical section and grants temporary access to the protected data.
Implementors
impl<T1, T2, T3, T4> TupleExt04 for (T1, T2, T3, T4) where
T1: Mutex,
T2: Mutex,
T3: Mutex,
T4: Mutex,
T1: Mutex,
T2: Mutex,
T3: Mutex,
T4: Mutex,
type T1 = <T1 as Mutex>::Data
type T2 = <T2 as Mutex>::Data
type T3 = <T3 as Mutex>::Data
type T4 = <T4 as Mutex>::Data
fn lock<R>(
&mut self,
f: impl FnOnce(&mut <(T1, T2, T3, T4) as TupleExt04>::T1, &mut <(T1, T2, T3, T4) as TupleExt04>::T2, &mut <(T1, T2, T3, T4) as TupleExt04>::T3, &mut <(T1, T2, T3, T4) as TupleExt04>::T4) -> R
) -> R
&mut self,
f: impl FnOnce(&mut <(T1, T2, T3, T4) as TupleExt04>::T1, &mut <(T1, T2, T3, T4) as TupleExt04>::T2, &mut <(T1, T2, T3, T4) as TupleExt04>::T3, &mut <(T1, T2, T3, T4) as TupleExt04>::T4) -> R
) -> R