1 2 3 4 5 6 7
use std::time::Duration; pub trait TaskLevel: Default { fn success(&mut self); fn failure(&mut self); fn duration(&self) -> Duration; }