[][src]Struct r3::kernel::cfg::CfgMutexBuilder

#[must_use = "must call `finish()` to complete registration"]pub struct CfgMutexBuilder<System> { /* fields omitted */ }

Configuration builder type for Mutex.

Implementations

impl<System: Port> CfgMutexBuilder<System>[src]

pub const fn protocol(self, protocol: MutexProtocol) -> Self[src]

Specify the mutex's protocol. Defaults to None when unspecified.

pub const fn finish(self, cfg: &mut CfgBuilder<System>) -> Mutex<System>[src]

Complete the definition of a mutex, returning a reference to the mutex.

Auto Trait Implementations

impl<System> Send for CfgMutexBuilder<System> where
    System: Send
[src]

impl<System> Sync for CfgMutexBuilder<System> where
    System: Sync
[src]

impl<System> Unpin for CfgMutexBuilder<System> where
    System: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.