[][src]Trait thin_main_loop::IOAble

pub trait IOAble {
    fn fd(&self) -> RawFd;
fn direction(&self) -> IODirection; fn on_rw(&mut self, _: Result<IODirection, Error>) { ... } }

Represents an object that can be read from and/or written to.

Required methods

fn fd(&self) -> RawFd

fn direction(&self) -> IODirection

Loading content...

Provided methods

fn on_rw(&mut self, _: Result<IODirection, Error>)

Loading content...

Implementors

impl<IO, F> IOAble for IOReader<IO, F> where
    IO: AsRawFd,
    F: FnMut(&mut IO, Result<IODirection, Error>), 
[src]

Loading content...