[][src]Trait rustracing::carrier::IterHttpHeaderFields

pub trait IterHttpHeaderFields<'a> {
    type Fields: Iterator<Item = (&'a str, &'a [u8])>;
    fn fields(&'a self) -> Self::Fields;
}

This trait allows to iterate over the fields of a HTTP header.

Associated Types

type Fields: Iterator<Item = (&'a str, &'a [u8])>

Iterator for traversing HTTP header fields.

Loading content...

Required methods

fn fields(&'a self) -> Self::Fields

Returns an iterator for traversing the HTTP header fields.

Loading content...

Implementations on Foreign Types

impl<'a, K, V, S> IterHttpHeaderFields<'a> for HashMap<K, V, S> where
    K: AsRef<str> + Eq + Hash,
    V: AsRef<[u8]>,
    S: BuildHasher
[src]

type Fields = Box<dyn Iterator<Item = (&'a str, &'a [u8])> + 'a>

Loading content...

Implementors

Loading content...