[][src]Trait embedded_hal::mutex::Mutex

pub trait Mutex<T>: Sized {
    type CreationError;
    fn create(v: T) -> Result<Self, Self::CreationError>;
}
[]

A generic mutex abstraction.

This trait by itself is not that useful, RoMutex and RwMutex have this as their common requirement. See the module root for more info.

Associated Types

type CreationError[]

Creation Error

Required methods

fn create(v: T) -> Result<Self, Self::CreationError>[]

Create a new mutex of this type.

Implementors

impl<T, M> Mutex<T> for M where
    M: RefCellRw + RoMutex<RefCell<T>>, 
[src][]