pub trait Write { // Required methods fn write(&mut self, buf: &[u8]) -> Result<usize>; fn can_write(&self) -> bool; }