Trait Write

Source
pub trait Write {
    // Required methods
    fn write(&mut self, buf: &[u8]) -> Result<usize, Error>;
    fn can_write(&self) -> bool;
}

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> Result<usize, Error>

Write data to the device. Returns the number of bytes written.

Source

fn can_write(&self) -> bool

Returns true if the device is ready to accept data.

Implementors§