vault_tasks_time_management/
time_management_technique.rs

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;
}