logo
pub unsafe trait SemaphoreHandle {
    type System: KernelSemaphore;
    unsafe fn from_id(
        id: <Self::System as KernelSemaphore>::RawSemaphoreId
    ) -> Self;
fn id(&self) -> <Self::System as KernelSemaphore>::RawSemaphoreId;
fn borrow(&self) -> SemaphoreRef<'_, Self::System>; }
Expand description

The trait for safe wrappers of System::RawSemaphoreId, i.e., Semaphore and SemaphoreRef.

Associated Types

The system type this object pertains to.

Required methods

Construct a Semaphore from RawSemaphoreId.

Safety

This function is marked as unsafe to prevent safe code from compromising object safety.

Get the raw RawSemaphoreId value representing this object.

Implementors