Struct Connection

struct Connection<T, B, E> { ... }
where
    T: Read + Write + Unpin,
    B: Body + 'static,
    E: Http2ClientConnExec<B, T> + Unpin,
    <B as >::Error: Into<Box<dyn Error + Send + Sync>>

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.

Instances of this type are typically created via the handshake function

Implementations

impl<T, B, E> Connection<T, B, E>

fn is_extended_connect_protocol_enabled(self: &Self) -> bool

Returns whether the extended CONNECT protocol is enabled or not.

This setting is configured by the server peer by sending the SETTINGS_ENABLE_CONNECT_PROTOCOL parameter in a SETTINGS frame. This method returns the currently acknowledged value received from the remote.

impl<F> IntoFuture for Connection<T, B, E>

fn into_future(self: Self) -> <F as IntoFuture>::IntoFuture

impl<F, T, E> TryFuture for Connection<T, B, E>

fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>

impl<Fut> TryFutureExt for Connection<T, B, E>

impl<T> Any for Connection<T, B, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Connection<T, B, E>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Connection<T, B, E>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Connection<T, B, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for Connection<T, B, E>

impl<T> Instrument for Connection<T, B, E>

impl<T> WithSubscriber for Connection<T, B, E>

impl<T, B, E> Debug for Connection<T, B, E>

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl<T, B, E> Freeze for Connection<T, B, E>

impl<T, B, E> Future for Connection<T, B, E>

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<<Self as >::Output>

impl<T, B, E> RefUnwindSafe for Connection<T, B, E>

impl<T, B, E> Send for Connection<T, B, E>

impl<T, B, E> Sync for Connection<T, B, E>

impl<T, B, E> Unpin for Connection<T, B, E>

impl<T, B, E> UnwindSafe for Connection<T, B, E>

impl<T, U> Into for Connection<T, B, E>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Connection<T, B, E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Connection<T, B, E>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>