[−][src]Struct rustracing_jaeger::span::SpanContextState
Jager specific span context state.
Methods
impl SpanContextState
[src]
pub fn trace_id(&self) -> TraceId
[src]
Returns the trace identifier of this span.
pub fn span_id(&self) -> u64
[src]
Returns the identifier of this span.
pub fn is_sampled(&self) -> bool
[src]
Returns true
if this span has been sampled (i.e., being traced).
pub fn debug_id(&self) -> Option<&str>
[src]
Returns the debug identifier of this span if exists.
Trait Implementations
impl<'a> From<CandidateSpan<'a, SpanContextState>> for SpanContextState
[src]
fn from(f: CandidateSpan<'a>) -> Self
[src]
impl Clone for SpanContextState
[src]
fn clone(&self) -> SpanContextState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for SpanContextState
[src]
impl Debug for SpanContextState
[src]
impl FromStr for SpanContextState
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
impl<T: TextMap> InjectToTextMap<T> for SpanContextState
[src]
fn inject_to_text_map(context: &SpanContext, carrier: &mut T) -> Result<()>
[src]
impl<T: TextMap> ExtractFromTextMap<T> for SpanContextState
[src]
fn extract_from_text_map(carrier: &T) -> Result<Option<SpanContext>>
[src]
impl<T> InjectToHttpHeader<T> for SpanContextState where
T: SetHttpHeaderField,
[src]
T: SetHttpHeaderField,
fn inject_to_http_header(context: &SpanContext, carrier: &mut T) -> Result<()>
[src]
impl<'a, T> ExtractFromHttpHeader<'a, T> for SpanContextState where
T: IterHttpHeaderFields<'a>,
[src]
T: IterHttpHeaderFields<'a>,
fn extract_from_http_header(carrier: &'a T) -> Result<Option<SpanContext>>
[src]
Auto Trait Implementations
impl Send for SpanContextState
impl Sync for SpanContextState
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,