1 2 3 4 5 6 7
use std::{fmt::Debug, time::Duration}; use crate::State; pub trait TimeManagementTechnique: Debug { fn switch(&mut self, state: &Option<State>, time_spent: Duration) -> State; }