pub trait HeaderEntry<D = Prevalidated>: Sized
where D: HeaderEntryDiscriminant<Self>,
{ type HeaderName; type HeaderValue; // Required methods fn header_name(&self) -> &Self::HeaderName; fn header_pair(self) -> (Self::HeaderName, Self::HeaderValue); }
Expand description

Trait for identifying valid header entries.

Header entries are distinguished by their discrimimants, (See HeaderEntryDiscriminant).

Required Associated Types§

Required Methods§

source

fn header_name(&self) -> &Self::HeaderName

source

fn header_pair(self) -> (Self::HeaderName, Self::HeaderValue)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<N, V> HeaderEntry<Postvalidated<<V as TryInto<HeaderValue>>::Error>> for (N, V)

§

type HeaderName = N

§

type HeaderValue = V

source§

fn header_name(&self) -> &Self::HeaderName

source§

fn header_pair(self) -> (Self::HeaderName, Self::HeaderValue)

source§

impl<N: IntoHeaderName> HeaderEntry for (N, HeaderValue)

Implementors§