Trait ParseHeader

Source
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§

Source

fn header_name() -> &'static [&'static str]

Source

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.

Implementors§