#[repr(u32)]pub enum Priority {
Idle = 0,
Low = 1,
BelowNormal = 2,
Normal = 3,
AboveNormal = 4,
High = 5,
Realtime = 6,
Critical = 7,
}Expand description
Thread priority levels, matching ove_prio_t.
Variants are ordered from lowest (Idle) to highest (Critical) so that
standard comparison operators (<, >) work intuitively.
Variants§
Idle = 0
Lowest priority, typically the RTOS idle task level.
Low = 1
Low background priority.
BelowNormal = 2
Below-normal priority.
Normal = 3
Default priority for most application threads.
AboveNormal = 4
Above-normal priority for time-sensitive work.
High = 5
High priority for latency-critical tasks.
Realtime = 6
Real-time priority; preempts most other threads.
Critical = 7
Highest priority; reserved for system-critical tasks.
Trait Implementations§
Source§impl Ord for Priority
impl Ord for Priority
Source§impl PartialOrd for Priority
impl PartialOrd for Priority
impl Copy for Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
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