Struct PushPromise

struct PushPromise { ... }

A pushed response and corresponding request headers

Implementations

impl PushPromise

fn request(self: &Self) -> &Request<()>

Returns a reference to the push promise's request headers.

fn request_mut(self: &mut Self) -> &mut Request<()>

Returns a mutable reference to the push promise's request headers.

fn into_parts(self: Self) -> (Request<()>, PushedResponseFuture)

Consumes self, returning the push promise's request headers and response future.

impl Debug for PushPromise

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

impl Freeze for PushPromise

impl RefUnwindSafe for PushPromise

impl Send for PushPromise

impl Sync for PushPromise

impl Unpin for PushPromise

impl UnsafeUnpin for PushPromise

impl UnwindSafe for PushPromise

impl<T> Any for PushPromise

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PushPromise

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

impl<T> BorrowMut for PushPromise

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

impl<T> From for PushPromise

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for PushPromise

impl<T> WithSubscriber for PushPromise

impl<T, U> Into for PushPromise

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 PushPromise

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

impl<T, U> TryInto for PushPromise

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