[][src]Enum http_proxy_client_async::prepend_io_stream::PrependIoStream

pub enum PrependIoStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
{ Chain(Chain<Cursor<Vec<u8>>, T>), Plain(T), }

Variants

Chain(Chain<Cursor<Vec<u8>>, T>)
Plain(T)

Methods

impl<T> PrependIoStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

pub fn from_vec(stream: T, read_prepend: Option<Vec<u8>>) -> Self[src]

pub fn from_cursor(stream: T, read_prepend: Cursor<Vec<u8>>) -> Self[src]

pub fn chain(chain: Chain<Cursor<Vec<u8>>, T>) -> Self[src]

pub fn plain(stream: T) -> Self[src]

pub fn into_inner(self) -> (T, Option<Cursor<Vec<u8>>>)[src]

pub fn pending_prepend_data(&self) -> &[u8][src]

Trait Implementations

impl<T> AsyncRead for PrependIoStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

impl<T> AsyncWrite for PrependIoStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

impl<T: Debug> Debug for PrependIoStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PrependIoStream<T> where
    T: RefUnwindSafe

impl<T> Send for PrependIoStream<T> where
    T: Send

impl<T> Sync for PrependIoStream<T> where
    T: Sync

impl<T> Unpin for PrependIoStream<T>

impl<T> UnwindSafe for PrependIoStream<T> where
    T: 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 = !

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.