mutex_trait::prelude

Trait TupleExt11

Source
pub trait TupleExt11 {
    type T1;
    type T2;
    type T3;
    type T4;
    type T5;
    type T6;
    type T7;
    type T8;
    type T9;
    type T10;
    type T11;

    // 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, &mut Self::T7, &mut Self::T8, &mut Self::T9, &mut Self::T10, &mut Self::T11) -> 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.

Source

type T7

Data protected by the mutex.

Source

type T8

Data protected by the mutex.

Source

type T9

Data protected by the mutex.

Source

type T10

Data protected by the mutex.

Source

type T11

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, &mut Self::T7, &mut Self::T8, &mut Self::T9, &mut Self::T10, &mut Self::T11) -> R, ) -> R

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TupleExt11 for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T1: Mutex, T2: Mutex, T3: Mutex, T4: Mutex, T5: Mutex, T6: Mutex, T7: Mutex, T8: Mutex, T9: Mutex, T10: Mutex, T11: Mutex,

Source§

type T1 = <T1 as Mutex>::Data

Source§

type T2 = <T2 as Mutex>::Data

Source§

type T3 = <T3 as Mutex>::Data

Source§

type T4 = <T4 as Mutex>::Data

Source§

type T5 = <T5 as Mutex>::Data

Source§

type T6 = <T6 as Mutex>::Data

Source§

type T7 = <T7 as Mutex>::Data

Source§

type T8 = <T8 as Mutex>::Data

Source§

type T9 = <T9 as Mutex>::Data

Source§

type T10 = <T10 as Mutex>::Data

Source§

type T11 = <T11 as Mutex>::Data

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, &mut Self::T7, &mut Self::T8, &mut Self::T9, &mut Self::T10, &mut Self::T11) -> R, ) -> R

Implementors§