Struct freertos_rs::Mutex [] [src]

pub struct Mutex<T: ?Sized> { /* 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> Mutex<T>
[src]

Create a new mutex with the given inner value

Create a new recursive mutex with the given inner value

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

Consume the mutex and return its inner value

Trait Implementations

impl<T: Sync + Send> Send for Mutex<T>
[src]

impl<T: Sync + Send> Sync for Mutex<T>
[src]

impl<T: ?Sized> Debug for Mutex<T>
[src]

Formats the value using the given formatter.

impl<T: ?Sized> Drop for Mutex<T>
[src]

A method called when the value goes out of scope. Read more