pub enum BodyKind {
Empty,
Length(u64),
Chunked,
UntilClose,
}Expand description
How the response body is framed.
Variants§
Empty
No body at all: HEAD, 1xx, 204, 304.
Length(u64)
Exactly this many bytes.
Chunked
Transfer-Encoding: chunked.
UntilClose
Delimited by connection close (no length, no chunking).
Trait Implementations§
impl Copy for BodyKind
impl Eq for BodyKind
impl StructuralPartialEq for BodyKind
Auto Trait Implementations§
impl Freeze for BodyKind
impl RefUnwindSafe for BodyKind
impl Send for BodyKind
impl Sync for BodyKind
impl Unpin for BodyKind
impl UnsafeUnpin for BodyKind
impl UnwindSafe for BodyKind
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