pub trait Scheduler { // Required methods fn schedule(&mut self, runnable: Runnable); fn task(&mut self) -> Option<Runnable>; }