[][src]Struct websocket_base::stream::ReadWritePair

pub struct ReadWritePair<R, W>(pub R, pub W)
where
    R: Read,
    W: Write
;

If you would like to combine an input stream and an output stream into a single stream to talk websockets over then this is the struct for you!

This is useful if you want to use different mediums for different directions.

Trait Implementations

impl<R, W> AsyncRead for ReadWritePair<R, W> where
    R: AsyncRead,
    W: Write
[src]

impl<R, W> AsyncWrite for ReadWritePair<R, W> where
    W: AsyncWrite,
    R: Read
[src]

impl<R, W> Read for ReadWritePair<R, W> where
    R: Read,
    W: Write
[src]

impl<R, W> Splittable for ReadWritePair<R, W> where
    R: Read,
    W: Write
[src]

type Reader = R

The reading component of this type

type Writer = W

The writing component of this type

impl<R, W> Write for ReadWritePair<R, W> where
    R: Read,
    W: Write
[src]

Auto Trait Implementations

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

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

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

impl<R, W> Unpin for ReadWritePair<R, W> where
    R: Unpin,
    W: Unpin

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

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<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<S> Stream for S where
    S: Read + Write
[src]

impl<S> Stream for S where
    S: AsyncRead + AsyncWrite
[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<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]