pub fn write_all( stream: &mut dyn Write, buf: &[u8], timeout: Duration, ) -> Result<()>
Same as read_exact but for writing.
read_exact