Trait headers::util::TryFromValues
source · pub(crate) trait TryFromValues: Sized {
// Required method
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
where Self: Sized,
I: Iterator<Item = &'i HeaderValue>;
}
Expand description
A helper trait for use when deriving Header
.
Required Methods§
sourcefn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
Try to convert from the values into an instance of Self
.
Object Safety§
This trait is not object safe.