Struct Scheduler
Source pub struct Scheduler {
task_queue: [VecDeque<Task>; 2],
add_req_queue: [VecDeque<Task>; 2],
dispatcher: [Dispatcher; 2],
interval: u64,
current_task_id: [Option<usize>; 2],
}
Returns a mutable reference to the task with the specified ID, if found.
§Arguments
task_id
- The ID of the task to search for.
§Returns
A mutable reference to the task if found, or None otherwise.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.