pub trait MutexInnerImplwhere
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§
fn create() -> Result<Self, FreeRtosError>
fn take<D: DurationTicks>(&self, max_wait: D) -> Result<(), FreeRtosError>
fn give(&self)
Sourceunsafe fn from_raw_handle(handle: FreeRtosSemaphoreHandle) -> Self
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).
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.