Struct sc_tracing::SpanDatum
source · pub struct SpanDatum {
pub id: Id,
pub parent_id: Option<Id>,
pub name: String,
pub target: String,
pub level: Level,
pub line: u32,
pub start_time: Instant,
pub overall_time: Duration,
pub values: Values,
}
Expand description
Represents a single instance of a tracing span
Fields§
§id: Id
id for this span
parent_id: Option<Id>
id of the parent span, if any
name: String
Name of this span
target: String
Target, typically module
level: Level
Tracing Level - ERROR, WARN, INFO, DEBUG or TRACE
line: u32
Line number in source
start_time: Instant
Time that the span was last entered
overall_time: Duration
Total duration of span while entered
values: Values
Values recorded to this span
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SpanDatum
impl Send for SpanDatum
impl Sync for SpanDatum
impl Unpin for SpanDatum
impl UnwindSafe for SpanDatum
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.