pub enum PayloadType {
None,
Payload(PayloadDecoder),
Stream(PayloadDecoder),
}Expand description
The payload framing and decoder selected for an incoming HTTP/1 message.
Variants§
None
The message has no payload.
Payload(PayloadDecoder)
The message has an HTTP body.
Depending on the message headers and version, the decoder may use a fixed length, chunked transfer coding, or connection close as the body delimiter.
Stream(PayloadDecoder)
The message switches the connection away from HTTP framing.
Subsequent bytes belong to the upgraded protocol or tunnel.
Trait Implementations§
Source§impl Debug for PayloadType
impl Debug for PayloadType
impl Eq for PayloadType
Source§impl PartialEq for PayloadType
impl PartialEq for PayloadType
impl StructuralPartialEq for PayloadType
Auto Trait Implementations§
impl !Freeze for PayloadType
impl !RefUnwindSafe for PayloadType
impl !Sync for PayloadType
impl Send for PayloadType
impl Unpin for PayloadType
impl UnsafeUnpin for PayloadType
impl UnwindSafe for PayloadType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.