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

pub trait Carrier {
    fn get(&self, key: &'static str) -> Option<&str>;
fn set(&mut self, key: &'static str, value: String); }

Carriers provide an interface for adding and removing fields from an underlying struct like HashMap.

Required methods

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

Get a value for a key from the underlying data.

fn set(&mut self, key: &'static str, value: String)

Add a key and value to the underlying.

Loading content...

Implementations on Foreign Types

impl<S: BuildHasher> Carrier for HashMap<&'static str, String, S>[src]

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

Get a value for a key from the HashMap.

fn set(&mut self, key: &'static str, value: String)[src]

Set a key and value in the HashMap.

Loading content...

Implementors

Loading content...