#[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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueueOrder
impl Debug for QueueOrder
sourceimpl PartialEq<QueueOrder> for QueueOrder
impl PartialEq<QueueOrder> for QueueOrder
impl Copy for QueueOrder
impl Eq for QueueOrder
impl StructuralEq for QueueOrder
impl StructuralPartialEq for QueueOrder
Auto Trait Implementations
impl RefUnwindSafe for QueueOrder
impl Send for QueueOrder
impl Sync for QueueOrder
impl Unpin for QueueOrder
impl UnwindSafe for QueueOrder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more