Trait rtic::mutex_prelude::TupleExt02[][src]

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

Auto-generated tuple implementation, see Mutex for details.

Associated Types

type T1[src]

Data protected by the mutex.

type T2[src]

Data protected by the mutex.

Loading content...

Required methods

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

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

Loading content...

Implementors

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

type T1 = <T1 as Mutex>::T

type T2 = <T2 as Mutex>::T

Loading content...