Here\'s my code:
let mut altbuf: Vec = Vec::new(); // Stuff here... match stream.read_byte() { Ok(d) => altbuf.push(d), Err(e) => { pri
To print bytes as a UTF-8 string, use std::str::from_utf8 when the bytes may be malformed. Use the unsafe std::str::from_utf8_unchecked when the bytes are always valid UTF-8.
println!("{}", std::str::from_utf8(&altbuf).unwrap());