TcpConnectionNotify

Trait TcpConnectionNotify 

Source
pub trait TcpConnectionNotify {
    // 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) { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Source

fn connect_failed(&mut self)

Source

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

Source

fn error(&mut self, _error: Error)

Source

fn sent(&mut self)

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§