Struct rustracing_jaeger::span::SpanContextState
source · pub struct SpanContextState { /* private fields */ }
Expand description
Jaeger specific span context state.
Implementations§
source§impl 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§
source§impl Clone for SpanContextState
impl Clone for SpanContextState
source§fn clone(&self) -> SpanContextState
fn clone(&self) -> SpanContextState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpanContextState
impl Debug for SpanContextState
source§impl Display for SpanContextState
impl Display for SpanContextState
source§impl<T> ExtractFromBinary<T> for SpanContextStatewhere
T: Read,
impl<T> ExtractFromBinary<T> for SpanContextStatewhere
T: Read,
source§fn extract_from_binary(carrier: &mut T) -> Result<Option<SpanContext>>
fn extract_from_binary(carrier: &mut T) -> Result<Option<SpanContext>>
source§impl<'a, T> ExtractFromHttpHeader<'a, T> for SpanContextStatewhere
T: IterHttpHeaderFields<'a>,
impl<'a, T> ExtractFromHttpHeader<'a, T> for SpanContextStatewhere
T: IterHttpHeaderFields<'a>,
source§fn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext>>
fn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext>>
source§impl<T: TextMap> ExtractFromTextMap<T> for SpanContextState
impl<T: TextMap> ExtractFromTextMap<T> for SpanContextState
source§fn extract_from_text_map(carrier: &T) -> Result<Option<SpanContext>>
fn extract_from_text_map(carrier: &T) -> Result<Option<SpanContext>>
source§impl<'a> From<CandidateSpan<'a, SpanContextState>> for SpanContextState
impl<'a> From<CandidateSpan<'a, SpanContextState>> for SpanContextState
source§fn from(f: CandidateSpan<'a>) -> Self
fn from(f: CandidateSpan<'a>) -> Self
Converts to this type from the input type.
source§impl FromStr for SpanContextState
impl FromStr for SpanContextState
source§impl<T> InjectToBinary<T> for SpanContextStatewhere
T: Write,
impl<T> InjectToBinary<T> for SpanContextStatewhere
T: Write,
source§fn inject_to_binary(context: &SpanContext, carrier: &mut T) -> Result<()>
fn inject_to_binary(context: &SpanContext, carrier: &mut T) -> Result<()>
Injects
context
to carrier
.source§impl<T> InjectToHttpHeader<T> for SpanContextStatewhere
T: SetHttpHeaderField,
impl<T> InjectToHttpHeader<T> for SpanContextStatewhere
T: SetHttpHeaderField,
source§fn 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
.source§impl<T: TextMap> InjectToTextMap<T> for SpanContextState
impl<T: TextMap> InjectToTextMap<T> for SpanContextState
source§fn 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 Freeze for SpanContextState
impl RefUnwindSafe for SpanContextState
impl Send for SpanContextState
impl Sync for SpanContextState
impl Unpin for SpanContextState
impl UnwindSafe for SpanContextState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more