rtic::mutex::prelude

Trait TupleExt01

source
pub trait TupleExt01 {
    type T1;

    // Required method
    fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T1) -> R) -> R;
}
Expand description

Auto-generated tuple implementation, see Mutex for details.

Required Associated Types§

source

type T1

Data protected by the mutex.

Required Methods§

source

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

type T1 = <T1 as Mutex>::T

source§

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

Implementors§