pub enum PriorityDirection {
BiggerIsMoreUrgent,
SmallerIsMoreUrgent,
}Expand description
Which way a kernel’s raw priority numbers run.
TierSpec::priority is RAW — the number the system author wrote in
[tiers.<name>.<rtos>].priority, already in the target kernel’s scale — so
only the board knows which end is urgent. Issue 0636.
Variants§
BiggerIsMoreUrgent
NuttX (1..=255), FreeRTOS (0..=7), POSIX SCHED_FIFO: bigger wins.
SmallerIsMoreUrgent
Zephyr (negative = cooperative), ThreadX (0..=31): smaller wins.
Trait Implementations§
Source§impl Clone for PriorityDirection
impl Clone for PriorityDirection
Source§fn clone(&self) -> PriorityDirection
fn clone(&self) -> PriorityDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PriorityDirection
Source§impl Debug for PriorityDirection
impl Debug for PriorityDirection
impl Eq for PriorityDirection
Source§impl PartialEq for PriorityDirection
impl PartialEq for PriorityDirection
Source§fn eq(&self, other: &PriorityDirection) -> bool
fn eq(&self, other: &PriorityDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PriorityDirection
Auto Trait Implementations§
impl Freeze for PriorityDirection
impl RefUnwindSafe for PriorityDirection
impl Send for PriorityDirection
impl Sync for PriorityDirection
impl Unpin for PriorityDirection
impl UnsafeUnpin for PriorityDirection
impl UnwindSafe for PriorityDirection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more