Enum pros_core::task::TaskPriority
source · #[repr(u32)]pub enum TaskPriority {
High = 16,
Default = 8,
Low = 1,
}Expand description
Represents how much time the cpu should spend on this task. (Otherwise known as the priority)
Variants§
High = 16
The highest priority, should be used sparingly. Loops MUST have delays or sleeps to prevent starving other tasks.
Default = 8
The default priority.
Low = 1
The lowest priority, tasks with this priority will barely ever get cpu time.
Trait Implementations§
source§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 From<TaskPriority> for u32
impl From<TaskPriority> for u32
source§fn from(val: TaskPriority) -> Self
fn from(val: TaskPriority) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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