rtic::mutex_prelude

Trait TupleExt06

source
pub trait TupleExt06 {
    type T1;
    type T2;
    type T3;
    type T4;
    type T5;
    type T6;

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

Auto-generated tuple implementation, see Mutex for details.

Required Associated Types§

source

type T1

Data protected by the mutex.

source

type T2

Data protected by the mutex.

source

type T3

Data protected by the mutex.

source

type T4

Data protected by the mutex.

source

type T5

Data protected by the mutex.

source

type T6

Data protected by the mutex.

Required Methods§

source

fn lock<R>( &mut self, f: impl FnOnce(&mut Self::T1, &mut Self::T2, &mut Self::T3, &mut Self::T4, &mut Self::T5, &mut Self::T6) -> 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, T2, T3, T4, T5, T6> TupleExt06 for (T1, T2, T3, T4, T5, T6)
where T1: Mutex, T2: Mutex, T3: Mutex, T4: Mutex, T5: Mutex, T6: Mutex,

source§

type T1 = <T1 as Mutex>::T

source§

type T2 = <T2 as Mutex>::T

source§

type T3 = <T3 as Mutex>::T

source§

type T4 = <T4 as Mutex>::T

source§

type T5 = <T5 as Mutex>::T

source§

type T6 = <T6 as Mutex>::T

source§

fn lock<R>( &mut self, f: impl FnOnce(&mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T1, &mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T2, &mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T3, &mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T4, &mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T5, &mut <(T1, T2, T3, T4, T5, T6) as TupleExt06>::T6) -> R, ) -> R

Implementors§