pub trait BinaryWrite {
    fn write_buffer(&mut self, buffer: &[u8]) -> Result<usize, ()>;
}
Expand description

Interface for writing an arbitrary buffer.

Required Methods

Write the buffer to some underlying print mechanism.

Returns Ok(usize) on success with the number of bytes from buffer that were written. Returns Err(()) on any error.

Implementors