fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
        for chr in buf {
            self.sender.send(*chr).unwrap();
        }
        Ok(buf.len())
    }
// On write we forward each u8 of the buffer to the sender and return the length of the buffer
On write we forward each u8 of the buffer to the sender and return the length of the buffer
On write we forward each u8 of the buffer to the sender and return the length of the buffer
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
        for chr in buf {
            self.sender.send(*chr).unwrap();
        }
        Ok(buf.len())
    }
fn write ( & mut self , buf : & [ u8 ] ) -> io :: Result < usize > { for chr in buf { self . sender . send ( * chr ) . unwrap ( ) ; } Ok ( buf . len ( ) ) }
On write we forward each u8 of the buffer to the sender and return the length of the buffer
On write we forward each u8 of the buffer to the sender and return the length of the buffer
&mut self
buf
&[u8]
&mut self
buf
&[u8]