logo
pub struct SemaphoreDefiner<System: KernelSemaphore> { /* private fields */ }
Expand description

The definer (static builder) for Semaphore.

Implementations

[Required] Specify the initial semaphore value.

Must be less than or equal to maximum.

[Required] Specify the maximum semaphore value.

Specify how tasks are sorted in the wait queue of the semaphore. Defaults to QueueOrder::TaskPriority when unspecified.

Complete the definition of a semaphore, returning a reference to the semaphore.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.