pub enum HeadersKind {
Head,
Informational,
Trailers,
}Expand description
Which of the three header blocks an Event::Headers carries. The
connection already enforces the distinction, so a host does not have to
track received_head itself to tell them apart.
Variants§
Head
The request head, or a final (>= 200) response head.
Informational
A 1xx response head. It never ends the stream, and a final head follows.
Trailers
A trailer block. It always ends the stream.
Trait Implementations§
Source§impl Clone for HeadersKind
impl Clone for HeadersKind
impl Copy for HeadersKind
Source§impl Debug for HeadersKind
impl Debug for HeadersKind
impl Eq for HeadersKind
Source§impl PartialEq for HeadersKind
impl PartialEq for HeadersKind
impl StructuralPartialEq for HeadersKind
Auto Trait Implementations§
impl Forget for HeadersKind
impl Freeze for HeadersKind
impl RefUnwindSafe for HeadersKind
impl Send for HeadersKind
impl Sync for HeadersKind
impl Unpin for HeadersKind
impl UnsafeUnpin for HeadersKind
impl UnwindSafe for HeadersKind
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