Struct ResponseParts
struct ResponseParts { ... }
Parts of a response.
Used with IntoResponseParts.
Implementations
impl ResponseParts
fn headers(self: &Self) -> &HeaderMapGets a reference to the response headers.
fn headers_mut(self: &mut Self) -> &mut HeaderMapGets a mutable reference to the response headers.
fn extensions(self: &Self) -> &ExtensionsGets a reference to the response extensions.
fn extensions_mut(self: &mut Self) -> &mut ExtensionsGets 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) -> TReturns the argument unchanged.
impl<T> Instrument for ResponseParts
impl<T> WithSubscriber for ResponseParts
impl<T, U> Into for ResponseParts
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>