Trait rtic::mutex_prelude::TupleExt01[][src]

pub trait TupleExt01 {
    type T1;
    pub 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[src]

Data protected by the mutex.

Loading content...

Required methods

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

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

Loading content...

Implementors

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

type T1 = <T1 as Mutex>::T

Loading content...