Struct PushPromise
pub struct PushPromise { /* private fields */ }
A pushed response and corresponding request headers
Implementations
impl PushPromise
fn request(&self) -> &Request<()>Returns a reference to the push promise's request headers.
fn request_mut(&mut self) -> &mut Request<()>Returns a mutable reference to the push promise's request headers.
fn into_parts(self) -> (Request<()>, PushedResponseFuture)Consumes
self, returning the push promise's request headers and response future.
Trait Implementations
impl Debug for PushPromise
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl !Freeze for PushPromise
impl !RefUnwindSafe for PushPromise
impl !UnwindSafe for PushPromise
impl Send for PushPromise
impl Sync for PushPromise
impl Unpin for PushPromise
impl UnsafeUnpin for PushPromise
Blanket Implementations
impl<T> Any for PushPromise
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PushPromise
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PushPromise
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PushPromise
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for PushPromise
impl<T> WithSubscriber for PushPromise
impl<T, U> Into<U> for PushPromise
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PushPromise
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PushPromise
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>