pub trait Tty { // Required methods fn device_name(&self) -> String; fn read(&mut self) -> Option<u8>; fn write(&mut self, output: u8) -> bool; }