[][src]Struct duplexify::Duplex

pub struct Duplex<R, W> { /* fields omitted */ }

Combine a reader + writer into a duplex of Read + Write.

Implementations

impl<R, W> Duplex<R, W>[src]

pub fn new(reader: R, writer: W) -> Self[src]

Create a new instance.

pub fn into_inner(self) -> (R, W)[src]

Decomposes a duplex into its components.

Trait Implementations

impl<R: BufRead, W> AsyncBufRead for Duplex<R, W>[src]

impl<R: Read, W> AsyncRead for Duplex<R, W>[src]

impl<R, W: Write> AsyncWrite for Duplex<R, W>[src]

impl<R, W> Clone for Duplex<R, W> where
    R: Clone,
    W: Clone
[src]

impl<R: Debug, W: Debug> Debug for Duplex<R, W>[src]

impl<'__pin, R, W> Unpin for Duplex<R, W> where
    __Origin<'__pin, R, W>: Unpin
[src]

Auto Trait Implementations

impl<R, W> RefUnwindSafe for Duplex<R, W> where
    R: RefUnwindSafe,
    W: RefUnwindSafe

impl<R, W> Send for Duplex<R, W> where
    R: Send,
    W: Send

impl<R, W> Sync for Duplex<R, W> where
    R: Sync,
    W: Sync

impl<R, W> UnwindSafe for Duplex<R, W> where
    R: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

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

impl<R> AsyncBufReadExt for R where
    R: AsyncBufRead + ?Sized

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized

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

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

impl<T> BufReadExt for T where
    T: AsyncBufRead + ?Sized
[src]

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

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

impl<T> ReadExt for T where
    T: AsyncRead + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized
[src]