pub enum Body {
Static(&'static [u8]),
Owned(Vec<u8>),
File(File),
}Expand description
A type representing a Response body.
This type is intended exclusively for use as part of a Response<Body>.
Each conduit server provides its own request type that implements
RequestExt which provides the request body as a &'a mut dyn Read.
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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