pub enum Header<T = HeaderName> {
Field {
name: T,
value: HeaderValue,
},
Authority(BytesStr),
Method(Method),
Scheme(BytesStr),
Path(BytesStr),
Protocol(Protocol),
Status(StatusCode),
}
Expand description
HTTP/2 Header
Variants§
Field
Authority(BytesStr)
Method(Method)
Scheme(BytesStr)
Path(BytesStr)
Protocol(Protocol)
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§
source§impl<T: PartialEq> PartialEq for Header<T>
impl<T: PartialEq> PartialEq for Header<T>
impl<T: Eq> Eq for Header<T>
impl<T> StructuralPartialEq for Header<T>
Auto Trait Implementations§
impl<T = HeaderName> !Freeze for Header<T>
impl<T> RefUnwindSafe for Header<T>where
T: RefUnwindSafe,
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> UnwindSafe for Header<T>where
T: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.