1
2
3
4
5
6
7
8

pub trait Input {
    fn read(&self) -> bool;
}
pub trait Output {
    fn get_command(&self) -> bool;
    fn write(&mut self, bool) -> bool;
}