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§
source§impl 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§
source§impl Clone for QueueOrder
impl Clone for QueueOrder
source§fn clone(&self) -> QueueOrder
fn clone(&self) -> QueueOrder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for QueueOrder
impl Debug for QueueOrder
source§impl PartialEq<QueueOrder> for QueueOrder
impl PartialEq<QueueOrder> for QueueOrder
source§fn eq(&self, other: &QueueOrder) -> bool
fn eq(&self, other: &QueueOrder) -> bool
self and other values to be equal, and is used
by ==.