pub fn write_port(port: u16, data: &[u8]) -> Result<Option<&[u8]>, ()>
Expand description

Attempt to write data to a virtual serial port

On success, the unsent “remainder” portion, if any, is returned. If all data was sent, Ok(None) is returned.