[][src]Trait thin_main_loop::IOAble

pub trait IOAble {
    fn handle(&self) -> CbHandle;
fn direction(&self) -> IODirection;
fn on_rw(&mut self, _: Result<IODirection, Error>) -> bool; }

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

Required methods

fn handle(&self) -> CbHandle

fn direction(&self) -> IODirection

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

Loading content...

Implementors

impl IOAble for Io[src]

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

Loading content...