pub enum Framing {
None,
Length(u64),
Chunked,
Close,
}Expand description
How the message body is delimited (RFC 9112 §6.3).
Variants§
None
No body.
Length(u64)
Exactly this many bytes (never zero: a zero length is Framing::None).
Chunked
Transfer-Encoding: chunked.
Close
Until the connection closes (responses only).
Trait Implementations§
impl Copy for Framing
impl Eq for Framing
impl StructuralPartialEq for Framing
Auto Trait Implementations§
impl Forget for Framing
impl Freeze for Framing
impl Move for Framing
impl RefUnwindSafe for Framing
impl Send for Framing
impl Sync for Framing
impl Unpin for Framing
impl UnsafeUnpin for Framing
impl UnwindSafe for Framing
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