fn retrieve_from_socket(&mut self) -> Result<(), Error> {
        let mut buf = [0; 1024];
        let bytes = self.socket.read(&mut buf)?;
        for b in buf[..bytes].iter() {
            self.buffer.push(*b);
        }
        Ok(())
    }
/// Retrieve new data from the socket
Retrieve new data from the socket
Retrieve new data from the socket
fn retrieve_from_socket(&mut self) -> Result<(), Error> {
        let mut buf = [0; 1024];
        let bytes = self.socket.read(&mut buf)?;
        for b in buf[..bytes].iter() {
            self.buffer.push(*b);
        }
        Ok(())
    }
fn retrieve_from_socket ( & mut self ) -> Result < ( ) , Error > { let mut buf = [ 0 ; 1024 ] ; let bytes = self . socket . read ( & mut buf ) ? ; for b in buf [ .. bytes ] . iter ( ) { self . buffer . push ( * b ) ; } Ok ( ( ) ) }
Retrieve new data from the socket
Retrieve new data from the socket
&mut self