Trait embedded_svc::utils::mutex::RawMutex
source · pub trait RawMutex {
const INIT: Self;
// Required methods
fn new() -> Self;
unsafe fn lock(&self);
unsafe fn unlock(&self);
}Expand description
A raw Mutex trait for no_std environments. Prevents the introduction of dependency on STD for the utils module and its sub-modules.
NOTE: Users are strongly advised to just depend on STD and use the STD Mutex in their code.
Required Associated Constants§
Required Methods§
fn new() -> Self
Object Safety§
This trait is not object safe.