[]Trait esp32_hal::prelude::TupleExt01

pub trait TupleExt01 {
    type T1;
    fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T1) -> R) -> R;
}

Auto-generated tuple implementation, see Mutex for details.

Associated Types

type T1

Data protected by the mutex.

Loading content...

Required methods

fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T1) -> R) -> R

Creates a critical section and grants temporary access to the protected data.

Loading content...

Implementors

impl<T1> TupleExt01 for (T1,) where
    T1: Mutex

type T1 = <T1 as Mutex>::Data

Loading content...