Struct freertos_rs::MutexImpl [] [src]

pub struct MutexImpl<T: ?Sized, M> { /* fields omitted */ }

Mutual exclusion access to a contained value. Can be recursive - the current owner of a lock can re-lock it.

Methods

impl<T> MutexImpl<T, MutexNormal>
[src]

[src]

Create a new mutex with the given inner value

impl<T> MutexImpl<T, MutexRecursive>
[src]

[src]

Create a new recursive mutex with the given inner value

impl<T, M> MutexImpl<T, M> where
    M: MutexInnerImpl
[src]

[src]

Try to obtain a lock and mutable access to our inner value

[src]

Consume the mutex and return its inner value

Trait Implementations

impl<T: Sync + Send, M> Send for MutexImpl<T, M>
[src]

impl<T: Sync + Send, M> Sync for MutexImpl<T, M>
[src]

impl<T: ?Sized, M> Debug for MutexImpl<T, M> where
    M: MutexInnerImpl + Debug
[src]

[src]

Formats the value using the given formatter.