pub trait Serial {
// Required methods
fn serial_start(&mut self) -> Result<(), NetworkError>;
fn serial_stop(&mut self) -> Result<(), NetworkError>;
fn serial_recv(&mut self) -> Result<Option<Box<[u8]>>, NetworkError>;
fn serial_send(&mut self, data: &[u8]) -> Result<(), NetworkError>;
}Expand description
Access the USB serial port.