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§

source

fn set_priority(&mut self, task: &TaskRef, priority: u8) -> bool

Sets the priority of the given task.

source

fn priority(&mut self, task: &TaskRef) -> Option<u8>

Gets the priority of the given task.

Implementors§