fn on_error(&mut self, err: Error) {
        if let Kind::Io(ref err) = err.kind {
            if let Some(104) = err.raw_os_error() {
                return;
            }
        }

        error!("{:?}", err);
        if !log_enabled!(ErrorLevel) {
            println!("Encountered an error: {}\nEnable a logger to see more information.", err);
        }
    }
/// Called when an error occurs on the Socket.
Called when an error occurs on the Socket.
Called when an error occurs on the Socket .
fn on_error(&mut self, err: Error) {
        if let Kind::Io(ref err) = err.kind {
            if let Some(104) = err.raw_os_error() {
                return;
            }
        }
        error!("{:?}", err);
        if !log_enabled!(ErrorLevel) {
            println!("Encountered an error: {}\nEnable a logger to see more information.", err);
        }
    }
fn on_error ( & mut self , err : Error ) { if let Kind :: Io ( ref err ) = err . kind { if let Some ( 104 ) = err . raw_os_error ( ) { return ; } } error ! ( " " err ) ; if ! log_enabled ! ( ErrorLevel ) { println ! ( " \n " err ) ; } }
Called when an error occurs on the Socket.
Called when an error occurs on the Socket .
&mut self
err
Error
&mut self
err
Error