pub enum BodyState {
None,
Error,
Chunked,
Length,
Eof,
Taken,
Cached,
}Expand description
The state of a request or response body, mirroring Varnish’s body_status_t
(see tbl/body_status.h).
Variants§
None
No body.
Error
An error occurred while producing/reading the body.
Chunked
Chunked transfer encoding; the length isn’t known upfront.
Length
A known length (e.g. Content-Length).
Eof
The body ends when the connection closes; the length isn’t known upfront.
Taken
The body has already been consumed by someone else.
Cached
The body has been fully read and is cached as an object.
Trait Implementations§
impl Copy for BodyState
impl Eq for BodyState
impl StructuralPartialEq for BodyState
Auto Trait Implementations§
impl Freeze for BodyState
impl RefUnwindSafe for BodyState
impl Send for BodyState
impl Sync for BodyState
impl Unpin for BodyState
impl UnsafeUnpin for BodyState
impl UnwindSafe for BodyState
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