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§

source

fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
where Self: Sized, I: Iterator<Item = &'i HeaderValue>,

Try to convert from the values into an instance of Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryFromValues for HeaderValue

source§

fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>
where I: Iterator<Item = &'i HeaderValue>,

Implementors§