[][src]Trait opentelemetry::api::context::propagation::Extractor

pub trait Extractor {
    fn get(&self, key: &str) -> Option<&str>;
}

Extractor provides an interface for removing fields from an underlying struct like HashMap

Required methods

fn get(&self, key: &str) -> Option<&str>

Get a value from a key from the underlying data.

Loading content...

Implementations on Foreign Types

impl<S: BuildHasher> Extractor for HashMap<String, String, S>[src]

fn get(&self, key: &str) -> Option<&str>[src]

Get a value for a key from the HashMap.

Loading content...

Implementors

Loading content...