ExtractFromHttpHeader

Trait ExtractFromHttpHeader 

Source
pub trait ExtractFromHttpHeader<'a, T>: Sized
where T: IterHttpHeaderFields<'a>,
{ // Required method fn extract_from_http_header( carrier: &'a T, ) -> Result<Option<SpanContext<Self>>>; }
Expand description

This trait allows to extract SpanContext from HTTP header.

Required Methods§

Source

fn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext<Self>>>

Extracts SpanContext from carrier.

If carrier contains no span context, it will return Ok(None).

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§