Function reader_to_bytes

Source
pub fn reader_to_bytes<R>(reader: R) -> Result<Vec<u8>>
where R: Read + Send + 'static,
Expand description

Reads all bytes from a stream into a buffer. Returns an error if any chunk fails.