Trait MonitorAsyncReadWrite

Source
pub trait MonitorAsyncReadWrite {
    // Provided methods
    fn on_read(&mut self, _size: usize) { ... }
    fn on_eof(&mut self) { ... }
    fn on_read_err(&mut self, _err: &Error) { ... }
    fn on_write(&mut self, _size: usize) { ... }
    fn on_flush(&mut self) { ... }
    fn on_shutdown(&mut self) { ... }
    fn on_write_err(&mut self, _err: &Error) { ... }
}

Provided Methods§

Source

fn on_read(&mut self, _size: usize)

Source

fn on_eof(&mut self)

Source

fn on_read_err(&mut self, _err: &Error)

Source

fn on_write(&mut self, _size: usize)

Source

fn on_flush(&mut self)

Source

fn on_shutdown(&mut self)

Source

fn on_write_err(&mut self, _err: &Error)

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + MonitorAsyncReadWrite + ?Sized> MonitorAsyncReadWrite for &'a mut T

Source§

fn on_read(&mut self, _size: usize)

Source§

fn on_eof(&mut self)

Source§

fn on_read_err(&mut self, _err: &Error)

Source§

fn on_write(&mut self, _size: usize)

Source§

fn on_flush(&mut self)

Source§

fn on_shutdown(&mut self)

Source§

fn on_write_err(&mut self, _err: &Error)

Implementors§