DataRWAdapter

Trait DataRWAdapter 

Source
pub trait DataRWAdapter {
    // Required methods
    fn adapt_reader<'r>(&self, reader: Box<dyn Read + 'r>) -> Box<dyn Read + 'r>;
    fn adapt_writer<'w>(
        &self,
        writer: Box<dyn Write + 'w>,
    ) -> Box<dyn Write + 'w>;
}
Expand description

A fully dynamic adapter of byte read and write streams.

Required Methods§

Source

fn adapt_reader<'r>(&self, reader: Box<dyn Read + 'r>) -> Box<dyn Read + 'r>

Adapt a byte reader.

Source

fn adapt_writer<'w>(&self, writer: Box<dyn Write + 'w>) -> Box<dyn Write + 'w>

Adapt a byte writer.

Implementations on Foreign Types§

Source§

impl<T> DataRWAdapter for &T
where T: DataRWAdapter,

Source§

fn adapt_reader<'r>(&self, reader: Box<dyn Read + 'r>) -> Box<dyn Read + 'r>

Adapt a byte reader.

Source§

fn adapt_writer<'w>(&self, writer: Box<dyn Write + 'w>) -> Box<dyn Write + 'w>

Adapt a byte writer.

Implementors§