pub enum Header<T = HeaderName> {
Field {
name: T,
value: HeaderValue,
},
Authority(ByteString),
Method(Method),
Scheme(ByteString),
Path(ByteString),
Protocol(ByteString),
Status(StatusCode),
}
Expand description
HTTP/2 Header
Variants§
Field
Authority(ByteString)
Method(Method)
Scheme(ByteString)
Path(ByteString)
Protocol(ByteString)
Status(StatusCode)
Implementations§
Source§impl Header<Option<HeaderName>>
impl Header<Option<HeaderName>>
pub fn reify(self) -> Result<Header, HeaderValue>
Source§impl Header
impl Header
Trait Implementations§
impl<T: Eq> Eq for Header<T>
impl<T> StructuralPartialEq for Header<T>
Auto Trait Implementations§
impl<T> Freeze for Header<T>where
T: Freeze,
impl<T = HeaderName> !RefUnwindSafe for Header<T>
impl<T> Send for Header<T>where
T: Send,
impl<T> Sync for Header<T>where
T: Sync,
impl<T> Unpin for Header<T>where
T: Unpin,
impl<T = HeaderName> !UnwindSafe for Header<T>
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