pub trait TryIntoHeaderValue: Sized {
type Error: Into<HttpError>;
// Required method
fn try_into_value(self) -> Result<HeaderValue, Self::Error>;
}
Expand description
An interface for types that can be converted into a HeaderValue
.
Required Associated Types§
Required Methods§
sourcefn try_into_value(self) -> Result<HeaderValue, Self::Error>
fn try_into_value(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a HeaderValue.
Object Safety§
This trait is not object safe.