MutexInnerImpl

Trait MutexInnerImpl 

Source
pub trait MutexInnerImpl
where Self: Sized,
{ // Required methods fn create() -> Result<Self, FreeRtosError>; fn take<D: DurationTicks>(&self, max_wait: D) -> Result<(), FreeRtosError>; fn give(&self); unsafe fn from_raw_handle(handle: FreeRtosSemaphoreHandle) -> Self; fn raw_handle(&self) -> FreeRtosSemaphoreHandle; }

Required Methods§

Source

fn create() -> Result<Self, FreeRtosError>

Source

fn take<D: DurationTicks>(&self, max_wait: D) -> Result<(), FreeRtosError>

Source

fn give(&self)

Source

unsafe fn from_raw_handle(handle: FreeRtosSemaphoreHandle) -> Self

§Safety

handle must be a valid FreeRTOS mutex handle.

The type of handle (normal or recursive mutex) must match the type of instance being created (MutexNormal or MutexRecursive respectively).

Source

fn raw_handle(&self) -> FreeRtosSemaphoreHandle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§