pub enum TaskPriority {
Low = 0,
Normal = 1,
High = 2,
Critical = 3,
}
Expand description
Task priority levels
Variants§
Low = 0
Low priority task - executed when no higher priority tasks are available
Normal = 1
Normal priority task - default priority level for most tasks
High = 2
High priority task - prioritized over normal and low priority tasks
Critical = 3
Critical priority task - highest priority, executed immediately
Trait Implementations§
Source§impl Clone for TaskPriority
impl Clone for TaskPriority
Source§fn clone(&self) -> TaskPriority
fn clone(&self) -> TaskPriority
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaskPriority
impl Debug for TaskPriority
Source§impl Default for TaskPriority
impl Default for TaskPriority
Source§fn default() -> TaskPriority
fn default() -> TaskPriority
Returns the “default value” for a type. Read more
Source§impl Ord for TaskPriority
impl Ord for TaskPriority
Source§fn cmp(&self, other: &TaskPriority) -> Ordering
fn cmp(&self, other: &TaskPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaskPriority
impl PartialEq for TaskPriority
Source§impl PartialOrd for TaskPriority
impl PartialOrd for TaskPriority
impl Copy for TaskPriority
impl Eq for TaskPriority
impl StructuralPartialEq for TaskPriority
Auto Trait Implementations§
impl Freeze for TaskPriority
impl RefUnwindSafe for TaskPriority
impl Send for TaskPriority
impl Sync for TaskPriority
impl Unpin for TaskPriority
impl UnwindSafe for TaskPriority
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