Trait BufferedWriterSpec

Source
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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§