pub enum Body {
Empty,
Fixed(u64),
Chunked,
}Expand description
Represents the body of an HTTP message.
Variants§
Empty
No body is present.
Fixed(u64)
A fixed-length body with the specified number of bytes.
Chunked
A chunked transfer-coded body.
Trait 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 UnsafeUnpin 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