[][src]Struct fixed_buffer::ReadWriteChain

pub struct ReadWriteChain<'a, R: Read, RW: Read + Write> { /* fields omitted */ }

A wrapper for a pair of structs. The first implements Read. The second implements Read+Write.

Passes reads through to the Read. Once the Read returns EOF, passes reads to Read+Write.

Passes all writes through to the Read+Write.

This is like std::io::Chain that passes through writes. This makes it usable with Read+Write objects like std::net::TcpStream and rustls::Stream.

Implementations

impl<'a, R: Read, RW: Read + Write> ReadWriteChain<'a, R, RW>[src]

pub fn new(
    reader: &'a mut R,
    read_writer: &'a mut RW
) -> ReadWriteChain<'a, R, RW>

Notable traits for ReadWriteChain<'a, R, RW>

impl<'a, R: Read, RW: Read + Write> Read for ReadWriteChain<'a, R, RW>impl<'a, R: Read, RW: Read + Write> Write for ReadWriteChain<'a, R, RW>
[src]

Trait Implementations

impl<'a, R: Read, RW: Read + Write> Read for ReadWriteChain<'a, R, RW>[src]

impl<'a, R: Read, RW: Read + Write> Write for ReadWriteChain<'a, R, RW>[src]

Auto Trait Implementations

impl<'a, R, RW> RefUnwindSafe for ReadWriteChain<'a, R, RW> where
    R: RefUnwindSafe,
    RW: RefUnwindSafe
[src]

impl<'a, R, RW> Send for ReadWriteChain<'a, R, RW> where
    R: Send,
    RW: Send
[src]

impl<'a, R, RW> Sync for ReadWriteChain<'a, R, RW> where
    R: Sync,
    RW: Sync
[src]

impl<'a, R, RW> Unpin for ReadWriteChain<'a, R, RW>[src]

impl<'a, R, RW> !UnwindSafe for ReadWriteChain<'a, R, RW>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.