(mut reader: impl Read)
| 119 | } |
| 120 | |
| 121 | fn read_all(mut reader: impl Read) -> std::io::Result<Vec<u8>> { |
| 122 | let mut bytes = Vec::new(); |
| 123 | reader.read_to_end(&mut bytes)?; |
| 124 | Ok(bytes) |
| 125 | } |
| 126 | |
| 127 | fn join_reader( |
| 128 | thread: thread::JoinHandle<std::io::Result<Vec<u8>>>, |