[]Struct duplexify::Duplex

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

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

Methods

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

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

Create a new instance.

Trait Implementations

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

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

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]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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

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

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