InjectToHttpHeader

Trait InjectToHttpHeader 

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

This trait allows to inject SpanContext to HTTP header.

Required Methods§

Source

fn inject_to_http_header( 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§