fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
        match self.stream.read(buf) {
            Err(ref err) if err.kind() == ErrorKind::WouldBlock => Ok(0),
            other => other
        }
    }
/// Read data from the underlaying socket (EWOULDBLOCK is silently 
/// ignored).
Read data from the underlaying socket (EWOULDBLOCK is silently
ignored).
Read data from the underlaying socket ( EWOULDBLOCK is silently ignored ) .
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
        match self.stream.read(buf) {
            Err(ref err) if err.kind() == ErrorKind::WouldBlock => Ok(0),
            other => other
        }
    }
fn read ( & mut self , buf : & mut [ u8 ] ) -> io :: Result < usize > { match self . stream . read ( buf ) { Err ( ref err ) if err . kind ( ) == ErrorKind :: WouldBlock => Ok ( 0 ) , other => other } }
Read data from the underlaying socket (EWOULDBLOCK is silently
ignored).
Read data from the underlaying socket ( EWOULDBLOCK is silently ignored ) .
&mut self
buf
&mut [u8]
&mut self
buf
&mut [u8]