pub trait FromHeaderValue: Sized {
// Required methods
fn from_header_value(value: &str) -> Result<Self, String>;
fn type_name() -> &'static str;
}Expand description
Trait for types that can be extracted from header values.
Required Methods§
Sourcefn from_header_value(value: &str) -> Result<Self, String>
fn from_header_value(value: &str) -> Result<Self, String>
Parse the header value.
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.