Struct Handshake

struct Handshake<T, B: Buf = bytes::Bytes> { ... }

In progress HTTP/2 connection handshake future.

This type implements Future, yielding a Connection instance once the handshake has completed.

The handshake is completed once the connection preface is fully received from the client and the initial settings frame is sent to the client.

The handshake future does not wait for the initial settings frame from the client.

See module level docs for more details.

Implementations

impl<F> IntoFuture for Handshake<T, B>

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

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

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

impl<T> Any for Handshake<T, B>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Handshake<T, B>

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

impl<T> BorrowMut for Handshake<T, B>

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

impl<T> From for Handshake<T, B>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Handshake<T, B>

impl<T> WithSubscriber for Handshake<T, B>

impl<T, B = Bytes> Freeze for Handshake<T, B>

impl<T, B = Bytes> RefUnwindSafe for Handshake<T, B>

impl<T, B = Bytes> UnwindSafe for Handshake<T, B>

impl<T, B> Debug for Handshake<T, B>

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

impl<T, B> Future for Handshake<T, B>

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

impl<T, B> Send for Handshake<T, B>

impl<T, B> Sync for Handshake<T, B>

impl<T, B> Unpin for Handshake<T, B>

impl<T, B> UnsafeUnpin for Handshake<T, B>

impl<T, U> Into for Handshake<T, B>

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 Handshake<T, B>

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

impl<T, U> TryInto for Handshake<T, B>

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