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.


impl<T> Mutex<T>

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>

impl<T: Sync + Send> Sync for Mutex<T>

impl<T: ?Sized> Debug for Mutex<T>

Formats the value using the given formatter.

impl<T: ?Sized> Drop for Mutex<T>

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