[][src]Trait layered_io::Bufferable

pub trait Bufferable {
    fn abandon(&mut self);

    fn suggested_buffer_size(&self) -> usize { ... }
}

A trait to help with buffering on top of ReadLayered and WriteLayered.

Required methods

fn abandon(&mut self)[src]

Close the resource and abandon any pending buffered contents or errors.

Loading content...

Provided methods

fn suggested_buffer_size(&self) -> usize[src]

A suggested size, in bytes, for buffering for performance.

Loading content...

Implementations on Foreign Types

impl<B: Bufferable> Bufferable for Box<B>[src]

impl<B: Bufferable> Bufferable for &mut B[src]

impl Bufferable for Cursor<Vec<u8>>[src]

impl Bufferable for Cursor<Box<[u8]>>[src]

impl Bufferable for Cursor<&mut Vec<u8>>[src]

impl Bufferable for Cursor<&mut [u8]>[src]

Loading content...

Implementors

impl<'slice> Bufferable for SliceReader<'slice>[src]

impl<Inner> Bufferable for LayeredDuplexer<Inner>[src]

impl<Inner> Bufferable for LayeredReader<Inner>[src]

impl<Inner> Bufferable for LayeredWriter<Inner>[src]

Loading content...