InjectToTextMap

Trait InjectToTextMap 

Source
pub trait InjectToTextMap<T>: Sized
where T: TextMap,
{ // Required method fn inject_to_text_map( context: &SpanContext<Self>, carrier: &mut T, ) -> Result<()>; }
Expand description

This trait allows to inject SpanContext to TextMap.

Required Methods§

Source

fn inject_to_text_map( context: &SpanContext<Self>, carrier: &mut T, ) -> Result<()>

Injects context to carrier.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§