[][src]Trait mutex_trait::prelude::TupleExt03

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

Auto-generated tuple implementation, see Mutex for details.

Associated Types

type T1

Data protected by the mutex.

type T2

Data protected by the mutex.

type T3

Data protected by the mutex.

Loading content...

Required methods

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

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

Loading content...

Implementors

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

type T1 = T1::Data

type T2 = T2::Data

type T3 = T3::Data

Loading content...