pub struct BytesResponse {
pub parts: Parts,
pub body: Box<dyn BytesBody>,
}
Expand description
Response with object safe body type
Fields§
§parts: Parts
Response status and header
body: Box<dyn BytesBody>
Response body
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BytesResponse
impl !RefUnwindSafe for BytesResponse
impl Send for BytesResponse
impl !Sync for BytesResponse
impl Unpin for BytesResponse
impl !UnwindSafe for BytesResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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