pub trait IntoHeaderValue: Sized {
type Error: Into<HttpError>;
// Required method
fn try_into(self) -> Result<HeaderValue, Self::Error>;
}Expand description
A trait for any object that can be Converted to a HeaderValue
Required Associated Types§
Required Methods§
Sourcefn try_into(self) -> Result<HeaderValue, Self::Error>
fn try_into(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a 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.