[][src]Trait mini::aio::net::TcpConnectionNotify

pub trait TcpConnectionNotify {
    fn accepted(&mut self, _connection: &mut TcpConnection) { ... }
fn connecting(&mut self, _connection: &mut TcpConnection, _count: u32) { ... }
fn connected(&mut self, _connection: &mut TcpConnection) { ... }
fn connect_failed(&mut self) { ... }
fn auth_failed(&mut self, _connection: &mut TcpConnection) { ... }
fn error(&mut self, _error: Error) { ... }
fn sent(&mut self) { ... }
fn wait_for_bytes(
        &mut self,
        _connection: &mut TcpConnection,
        _quantity: usize
    ) -> usize { ... }
fn received(&mut self, _connection: &mut TcpConnection, _data: Vec<u8>) { ... }
fn closed(&mut self, _connection: &mut TcpConnection) { ... }
fn throttled(&mut self, _connection: &mut TcpConnection) { ... }
fn unthrottled(&mut self, _connection: &mut TcpConnection) { ... } }

Provided methods

fn accepted(&mut self, _connection: &mut TcpConnection)

fn connecting(&mut self, _connection: &mut TcpConnection, _count: u32)

fn connected(&mut self, _connection: &mut TcpConnection)

fn connect_failed(&mut self)

fn auth_failed(&mut self, _connection: &mut TcpConnection)

fn error(&mut self, _error: Error)

fn sent(&mut self)

fn wait_for_bytes(
    &mut self,
    _connection: &mut TcpConnection,
    _quantity: usize
) -> usize

fn received(&mut self, _connection: &mut TcpConnection, _data: Vec<u8>)

fn closed(&mut self, _connection: &mut TcpConnection)

fn throttled(&mut self, _connection: &mut TcpConnection)

fn unthrottled(&mut self, _connection: &mut TcpConnection)

Loading content...

Implementors

Loading content...