[][src]Struct replicante_util_tracing::carriers::iron::HeadersCarrier

pub struct HeadersCarrier<'a> { /* fields omitted */ }

Implement the MapCarrier trait for Iron's Headers.

Methods

impl<'a> HeadersCarrier<'a>[src]

pub fn new(headers: &'a mut Headers) -> HeadersCarrier<'a>[src]

Mutably borrow a response so it can be serialised.

pub fn inject(
    context: &SpanContext,
    headers: &mut Headers,
    tracer: &Tracer
) -> OTResult<()>
[src]

Inject a SpanContext into the given Iron headers.

pub fn child_of(
    name: &str,
    headers: &mut Headers,
    tracer: &Tracer
) -> OTResult<Span>
[src]

Create a new span as a child of the context in the headers.

If the headers do not include any context the span will be a root span.

pub fn extract(
    headers: &mut Headers,
    tracer: &Tracer
) -> OTResult<Option<SpanContext>>
[src]

Checks the headers for a span context and extract it if possible.

pub fn follows_from(
    name: &str,
    headers: &mut Headers,
    tracer: &Tracer
) -> OTResult<Span>
[src]

Create a new span as a followe of the context in the headers.

If the headers do not include any context the span will be a root span.

Trait Implementations

impl<'a> MapCarrier for HeadersCarrier<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for HeadersCarrier<'a>

impl<'a> Send for HeadersCarrier<'a>

impl<'a> !Sync for HeadersCarrier<'a>

impl<'a> Unpin for HeadersCarrier<'a>

impl<'a> !UnwindSafe for HeadersCarrier<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,