[][src]Struct r3::sync::mutex::Builder

pub struct Builder<System, T, InitTag> { /* fields omitted */ }

Configuration builder type for Mutex.

Implementations

impl<System: Kernel, T: 'static, InitTag> Builder<System, T, InitTag>[src]

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

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

impl<System: Kernel, T: 'static, InitTag: HunkIniter<UnsafeCell<T>>> Builder<System, T, InitTag>[src]

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

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

Auto Trait Implementations

impl<System, T, InitTag> Send for Builder<System, T, InitTag> where
    InitTag: Send,
    System: Send,
    T: Send
[src]

impl<System, T, InitTag> !Sync for Builder<System, T, InitTag>[src]

impl<System, T, InitTag> Unpin for Builder<System, T, InitTag> where
    InitTag: Unpin,
    System: Unpin,
    T: 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.