[−][src]Struct hyper::client::conn::Connection
A future that processes all HTTP state for the IO object.
In most cases, this should just be spawned into an executor, so that it can process incoming and outgoing messages, notice hangups, and the like.
Methods
impl<T, B> Connection<T, B> where
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
[src][−]
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
pub fn into_parts(self) -> Parts<T>
[src][−]
Return the inner IO object, and additional information.
pub fn poll_without_shutdown(&mut self) -> Poll<(), Error>
[src][−]
Poll the connection for completion, but without calling shutdown
on the underlying IO.
This is useful to allow running a connection while doing an HTTP
upgrade. Once the upgrade is completed, the connection would be "done",
but it is not desired to actally shutdown the IO object. Instead you
would take it back using into_parts
.
Trait Implementations
impl<T, B> Debug for Connection<T, B> where
T: AsyncRead + AsyncWrite + Debug,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
[src][+]
T: AsyncRead + AsyncWrite + Debug,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
impl<T, B> Future for Connection<T, B> where
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
[src][+]
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
Auto Trait Implementations
impl<T, B> !RefUnwindSafe for Connection<T, B>
impl<T, B> Send for Connection<T, B> where
B: Send,
T: Send,
<B as Stream>::Item: Send,
B: Send,
T: Send,
<B as Stream>::Item: Send,
impl<T, B> Sync for Connection<T, B> where
B: Send + Sync,
T: Sync,
<B as Stream>::Item: Sync,
B: Send + Sync,
T: Sync,
<B as Stream>::Item: Sync,
impl<T, B> Unpin for Connection<T, B> where
B: Unpin,
T: Unpin,
<B as Stream>::Item: Unpin,
B: Unpin,
T: Unpin,
<B as Stream>::Item: Unpin,
impl<T, B> !UnwindSafe for Connection<T, B>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> FutureExt for T where
T: Future + ?Sized,
[src][+]
T: Future + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,