pub trait ParseHeader: Sized {
// Required methods
fn header_name() -> &'static [&'static str];
fn decode<'a>(
headers: impl IntoIterator<Item = &'a HeaderValue>,
) -> Option<Self>;
}
Required Methods§
fn header_name() -> &'static [&'static str]
fn decode<'a>( headers: impl IntoIterator<Item = &'a HeaderValue>, ) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.