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

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

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

Required methods

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

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]

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

Set a key and value in the HashMap.

impl Injector for HeaderMap[src]

This is supported on crate feature http only.

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

Set a key and value in the HeaderMap. Does nothing if the key or value are not valid inputs.

impl Injector for MetadataMap[src]

This is supported on crate feature tonic only.

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

Set a key and value in the MetadataMap. Does nothing if the key or value are not valid inputs

Loading content...

Implementors

Loading content...