QIO

Trait QIO 

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

Required Methods§

Source

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

returns the number of bytes read into the buffer

Source

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

returns the number of bytes written from the buffer. You cannot send more data than BUF_LEN - 8 in a single call to this function as this would result in an
overflow.

Implementors§