Struct ResponseParts

struct ResponseParts { ... }

Parts of a response.

Used with IntoResponseParts.

Implementations

impl ResponseParts

fn headers(self: &Self) -> &HeaderMap

Gets a reference to the response headers.

fn headers_mut(self: &mut Self) -> &mut HeaderMap

Gets a mutable reference to the response headers.

fn extensions(self: &Self) -> &Extensions

Gets a reference to the response extensions.

fn extensions_mut(self: &mut Self) -> &mut Extensions

Gets a mutable reference to the response extensions.

impl Debug for ResponseParts

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

impl Freeze for ResponseParts

impl RefUnwindSafe for ResponseParts

impl Send for ResponseParts

impl Sync for ResponseParts

impl Unpin for ResponseParts

impl UnsafeUnpin for ResponseParts

impl UnwindSafe for ResponseParts

impl<T> Any for ResponseParts

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ResponseParts

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

impl<T> BorrowMut for ResponseParts

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

impl<T> From for ResponseParts

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for ResponseParts

impl<T> WithSubscriber for ResponseParts

impl<T, U> Into for ResponseParts

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 ResponseParts

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

impl<T, U> TryInto for ResponseParts

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