Trait Write
pub trait Write {
    // Required methods
    fn write(&mut self, buf: &[u8]) -> Result<usize, AxError>;
    fn flush(&mut self) -> Result<(), AxError>;
    // Provided methods
    fn write_all(&mut self, buf: &[u8]) -> Result<(), AxError> { ... }
    fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), AxError> { ... }
}Expand description
A trait for objects which are byte-oriented sinks.