pub struct Response<B = Outgoing>(/* private fields */);Implementations§
Source§impl<B> Response<B>
impl<B> Response<B>
pub fn status(&self) -> StatusCode
pub fn header(&self, key: impl IntoUtf8Bytes) -> Option<&HeaderValue>
pub fn is_success(&self) -> bool
pub fn body(&self) -> &B
pub fn into_body(self) -> B
Auto Trait Implementations§
impl<B> Freeze for Response<B>where
B: Freeze,
impl<B = Outgoing> !RefUnwindSafe for Response<B>
impl<B> Send for Response<B>where
B: Send,
impl<B> Sync for Response<B>where
B: Sync,
impl<B> Unpin for Response<B>where
B: Unpin,
impl<B> UnsafeUnpin for Response<B>where
B: UnsafeUnpin,
impl<B = Outgoing> !UnwindSafe for Response<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more