Struct ResponseParts
pub struct ResponseParts { /* private fields */ }
Parts of a response.
Used with IntoResponseParts.
Implementations
impl ResponseParts
fn headers(&self) -> &HeaderMapGets a reference to the response headers.
fn headers_mut(&mut self) -> &mut HeaderMapGets a mutable reference to the response headers.
fn extensions(&self) -> &ExtensionsGets a reference to the response extensions.
fn extensions_mut(&mut self) -> &mut ExtensionsGets a mutable reference to the response extensions.
Trait Implementations
impl Debug for ResponseParts
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl !RefUnwindSafe for ResponseParts
impl !Sync for ResponseParts
impl !UnwindSafe for ResponseParts
impl Freeze for ResponseParts
impl Send for ResponseParts
impl Unpin for ResponseParts
impl UnsafeUnpin for ResponseParts
Blanket Implementations
impl<T> Any for ResponseParts
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ResponseParts
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ResponseParts
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ResponseParts
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for ResponseParts
impl<T> WithSubscriber for ResponseParts
impl<T, U> Into<U> for ResponseParts
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 ResponseParts
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ResponseParts
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>