[][src]Trait opentelemetry::api::propagation::Injector

pub trait Injector {
    fn set(&mut self, key: &str, value: String);
}

Injector provides an interface for adding fields from an underlying struct like HashMap

Required methods

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

Add a key and value to the underlying data.

Loading content...

Implementations on Foreign Types

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

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

Set a key and value in the HashMap.

Loading content...

Implementors

Loading content...