Struct rustracing_jaeger::span::SpanContextState
source · pub struct SpanContextState { /* private fields */ }
Expand description
Jager specific span context state.
Implementations
sourceimpl SpanContextState
impl SpanContextState
sourcepub fn is_sampled(&self) -> bool
pub fn is_sampled(&self) -> bool
Returns true
if this span has been sampled (i.e., being traced).
Trait Implementations
sourceimpl Clone for SpanContextState
impl Clone for SpanContextState
sourcefn clone(&self) -> SpanContextState
fn clone(&self) -> SpanContextState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SpanContextState
impl Debug for SpanContextState
sourceimpl Display for SpanContextState
impl Display for SpanContextState
sourceimpl<'a, T> ExtractFromHttpHeader<'a, T> for SpanContextStatewhere
T: IterHttpHeaderFields<'a>,
impl<'a, T> ExtractFromHttpHeader<'a, T> for SpanContextStatewhere
T: IterHttpHeaderFields<'a>,
sourcefn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext>>
fn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext>>
sourceimpl<T: TextMap> ExtractFromTextMap<T> for SpanContextState
impl<T: TextMap> ExtractFromTextMap<T> for SpanContextState
sourcefn extract_from_text_map(carrier: &T) -> Result<Option<SpanContext>>
fn extract_from_text_map(carrier: &T) -> Result<Option<SpanContext>>
sourceimpl<'a> From<CandidateSpan<'a, SpanContextState>> for SpanContextState
impl<'a> From<CandidateSpan<'a, SpanContextState>> for SpanContextState
sourcefn from(f: CandidateSpan<'a>) -> Self
fn from(f: CandidateSpan<'a>) -> Self
Converts to this type from the input type.
sourceimpl FromStr for SpanContextState
impl FromStr for SpanContextState
sourceimpl<T> InjectToHttpHeader<T> for SpanContextStatewhere
T: SetHttpHeaderField,
impl<T> InjectToHttpHeader<T> for SpanContextStatewhere
T: SetHttpHeaderField,
sourcefn inject_to_http_header(context: &SpanContext, carrier: &mut T) -> Result<()>
fn inject_to_http_header(context: &SpanContext, carrier: &mut T) -> Result<()>
Injects
context
to carrier
.sourceimpl<T: TextMap> InjectToTextMap<T> for SpanContextState
impl<T: TextMap> InjectToTextMap<T> for SpanContextState
sourcefn inject_to_text_map(context: &SpanContext, carrier: &mut T) -> Result<()>
fn inject_to_text_map(context: &SpanContext, carrier: &mut T) -> Result<()>
Injects
context
to carrier
.Auto Trait Implementations
impl RefUnwindSafe for SpanContextState
impl Send for SpanContextState
impl Sync for SpanContextState
impl Unpin for SpanContextState
impl UnwindSafe for SpanContextState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more