Enum r3_core::kernel::raw::QueueOrder
source · #[non_exhaustive]
pub enum QueueOrder {
Fifo,
TaskPriority,
}Expand description
Specifies the sorting order of a wait queue.
This enum type is defined as #[non_exhaustive] to allow for potential
future extensions.
The function QueueOrder::is_supported indicates whether a
QueueOrder is supported by the kernel. The behavior is
implementation-defined (preferably approximating the request or falling back
to a supported option) if a specified QueueOrder is not supported.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Fifo
The wait queue is processed in a FIFO order.
TaskPriority
The wait queue is processed in a task priority order. Tasks with the same priorities follow a FIFO order.
Implementations
sourceimpl QueueOrder
impl QueueOrder
sourcepub const fn is_supported<System: KernelBase>(&self) -> bool
pub const fn is_supported<System: KernelBase>(&self) -> bool
Return a flag indicating whether the kernel supports this QueueOrder.
It’s possible for this function to return false for all possible
values of QueueOrder if the kernel doesn’t precisely implement any
possible options of QueueOrder.
Trait Implementations
sourceimpl Clone for QueueOrder
impl Clone for QueueOrder
sourcefn clone(&self) -> QueueOrder
fn clone(&self) -> QueueOrder
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more