1pub trait BusInterface { 2 fn read(&mut self, address: u16) -> u8; 3 4 fn write(&mut self, address: u16, value: u8); 5 6 fn idle(&mut self); 7}