pub enum HeadersKind {
Request,
Response,
Informational,
Trailers,
}Expand description
Which part of a message a header block is.
Variants§
Request
Request head (received by a server).
Response
Final (non-1xx) response head (received by a client).
Informational
Interim 1xx response head (received by a client); a final response follows.
Trailers
Trailer section, after the body (either role).
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 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