Trait task::scheduler::PriorityScheduler
source · pub trait PriorityScheduler {
// Required methods
fn set_priority(&mut self, task: &TaskRef, priority: u8) -> bool;
fn priority(&mut self, task: &TaskRef) -> Option<u8>;
}
Expand description
A task scheduler that supports some notion of priority.
Required Methods§
sourcefn set_priority(&mut self, task: &TaskRef, priority: u8) -> bool
fn set_priority(&mut self, task: &TaskRef, priority: u8) -> bool
Sets the priority of the given task.