pub trait DataRWAdapter<R, W> {
    type Reader: Read;
    type Writer: Write;

    fn adapt_reader(&self, reader: R) -> Self::Reader
    where
        R: Read
; fn adapt_writer(&self, writer: W) -> Self::Writer
    where
        W: Write
; }
Expand description

An adapter of byte read and write streams.

Required Associated Types

The type of the adapted reader.

The type of the adapted writer.

Required Methods

Adapt a byte reader.

Adapt a byte writer.

Implementations on Foreign Types

Adapt a byte reader.

Adapt a byte writer.

Implementors