Skip to main content

HeaderField

Trait HeaderField 

Source
pub trait HeaderField {
    type Value: FromHeaderValue + Send + 'static;

    const NAME: &'static HeaderName;
    const KEY: LocalKey<Option<Self::Value>>;
}

Required Associated Constants§

Source

const NAME: &'static HeaderName

Source

const KEY: LocalKey<Option<Self::Value>>

Required Associated Types§

Source

type Value: FromHeaderValue + Send + 'static

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§