pub trait Write { // Required method fn write_all(&mut self, buf: &[u8]) -> Result<()>; }
A rough approximation of std::io::Write.