[][src]Struct rw_stream_sink::RwStreamSink

pub struct RwStreamSink<S: TryStream> { /* fields omitted */ }

Wraps a Stream and Sink whose items are buffers. Implements AsyncRead and AsyncWrite.

Methods

impl<S: TryStream> RwStreamSink<S>[src]

pub fn new(inner: S) -> Self[src]

Wraps around inner.

Trait Implementations

impl<S> AsyncRead for RwStreamSink<S> where
    S: TryStream<Error = Error>,
    <S as TryStream>::Ok: AsRef<[u8]>, 
[src]

impl<S> AsyncWrite for RwStreamSink<S> where
    S: TryStream + Sink<<S as TryStream>::Ok, Error = Error>,
    <S as TryStream>::Ok: for<'r> From<&'r [u8]>, 
[src]

impl<'pin, S: TryStream> Unpin for RwStreamSink<S> where
    __RwStreamSink<'pin, S>: Unpin
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for RwStreamSink<S> where
    S: RefUnwindSafe,
    <S as TryStream>::Ok: RefUnwindSafe

impl<S> Send for RwStreamSink<S> where
    S: Send,
    <S as TryStream>::Ok: Send

impl<S> Sync for RwStreamSink<S> where
    S: Sync,
    <S as TryStream>::Ok: Sync

impl<S> UnwindSafe for RwStreamSink<S> where
    S: UnwindSafe,
    <S as TryStream>::Ok: UnwindSafe

Blanket Implementations

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

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

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?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.