Trait opentracingrust::MapCarrier
[−]
[src]
pub trait MapCarrier { fn find_items(&self, f: Box<Fn(&String) -> bool>) -> Vec<(String, String)>; fn get(&self, key: &str) -> Option<String>; fn set(&mut self, key: &str, value: &str); }
TODO
Required Methods
fn find_items(&self, f: Box<Fn(&String) -> bool>) -> Vec<(String, String)>
TODO
NOTE:
This is not the most efficient interface to extract baggage items.
The iterator interface cannot cleanly be used because we want
TextMapCarrier
trait objects (which do not allow generics).
If a better interface comes up re-evaluate this method.
TODO: Can I Box
fn get(&self, key: &str) -> Option<String>
TODO
fn set(&mut self, key: &str, value: &str)
TODO