pub enum BodyMode {
NoBody,
LengthDelimited(u64),
Chunked,
CloseDelimited,
}Expand description
Kind of body
Variants§
NoBody
No body is expected either due to the status or method.
LengthDelimited(u64)
Delimited by content-length. The value is what’s left to receive.
Chunked
Chunked transfer encoding
CloseDelimited
Expect remote to close at end of body.
Trait Implementations§
impl Copy for BodyMode
impl Eq for BodyMode
impl StructuralPartialEq for BodyMode
Auto Trait Implementations§
impl Freeze for BodyMode
impl RefUnwindSafe for BodyMode
impl Send for BodyMode
impl Sync for BodyMode
impl Unpin for BodyMode
impl UnwindSafe for BodyMode
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