trait BufferedWriterSpec: Write {
    // Required methods
    fn buffer_size(&self) -> usize;
    fn copy_from<R: Read + ?Sized>(&mut self, reader: &mut R) -> Result<u64>;
}
Expand description

Specialization of the read-write loop that either uses a stack buffer or reuses the internal buffer of a BufWriter

Required Methods§

source

fn buffer_size(&self) -> usize

source

fn copy_from<R: Read + ?Sized>(&mut self, reader: &mut R) -> Result<u64>

Implementors§