pub trait CopyBuffer {
    fn write(&mut self, bytes: &[u8]) -> Option<NonZeroUsize>;

    fn write_byte(&mut self, byte: u8) -> Option<NonZeroUsize> { ... }
}

Required Methods§

Copies as much of bytes as possible inside its cache, returning the amount actually written. Will return None if the write was refused.

Provided Methods§

Implementors§