use crate::error::Result; use crate::facilities::FacilityType; use std::sync::{ Arc, Mutex }; use std::time::Duration; pub use time::TimeModule; pub mod time; pub trait Module { const REQUIRED_FACILITIES: FacilityType; fn new() -> Result>>; fn format(&mut self) -> String; fn sleep_duration(&self) -> Option; }