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