Trait FileIO

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

Required Methods§

Source

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

Source

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

Source

fn close(&mut self)

Source

fn poll(&mut self, event: IO) -> bool

Implementors§