[][src]Struct hyper::client::pool::PooledStream

pub struct PooledStream<S> { /* fields omitted */ }

A Stream that will try to be returned to the Pool when dropped.

Implementations

impl<S: NetworkStream> PooledStream<S>[src]

pub fn into_inner(self) -> S[src]

Take the wrapped stream out of the pool completely.

pub fn get_ref(&self) -> &S[src]

Gets a borrowed reference to the underlying stream.

Trait Implementations

impl<S> Debug for PooledStream<S> where
    S: Debug + 'static, 
[src]

impl<S> Drop for PooledStream<S>[src]

impl<S: NetworkStream> NetworkStream for PooledStream<S>[src]

impl<S: NetworkStream> Read for PooledStream<S>[src]

impl<S: NetworkStream> Write for PooledStream<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for PooledStream<S> where
    S: RefUnwindSafe

impl<S> Send for PooledStream<S> where
    S: Send

impl<S> Sync for PooledStream<S> where
    S: Send + Sync

impl<S> Unpin for PooledStream<S> where
    S: Unpin

impl<S> UnwindSafe for PooledStream<S> where
    S: 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, 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> Typeable for T where
    T: Any
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]