Skip to main content

BufferedWriterSpec

Trait BufferedWriterSpec 

Source
trait BufferedWriterSpec: Write {
    // Required methods
    fn buffer_priority(&self) -> usize;
    fn copy_from<R: Read + ?Sized>(&mut self, reader: &mut R) -> Result<u64>;
}
🔬This is a nightly-only experimental API. (alloc_io #154046)
Expand description

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

Required Methods§

Source

fn buffer_priority(&self) -> usize

🔬This is a nightly-only experimental API. (alloc_io #154046)
Source

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

🔬This is a nightly-only experimental API. (alloc_io #154046)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§