pub trait Write { // Required methods fn write(&mut self, buf: &[u8]) -> Result<usize, Error>; fn can_write(&self) -> bool; }
Write data to the device. Returns the number of bytes written.
Returns true if the device is ready to accept data.