pub struct Span {Show 21 fields
pub parent: Option<NonZeroUsize>,
pub depth: u32,
pub start: Timestamp,
pub category: String,
pub name: String,
pub args: Vec<(String, String)>,
pub events: Vec<SpanEvent>,
pub is_complete: bool,
pub self_allocations: u64,
pub self_allocation_count: u64,
pub self_deallocations: u64,
pub self_deallocation_count: u64,
pub max_depth: OnceLock<u32>,
pub total_allocations: OnceLock<u64>,
pub total_deallocations: OnceLock<u64>,
pub total_persistent_allocations: OnceLock<u64>,
pub total_span_count: OnceLock<u64>,
pub total_allocation_count: OnceLock<u64>,
pub time_data: OnceLock<Box<SpanTimeData>>,
pub extra: OnceLock<Box<SpanExtra>>,
pub names: OnceLock<Box<SpanNames>>,
}
Fields§
§parent: Option<NonZeroUsize>
§depth: u32
§start: Timestamp
§category: String
§name: String
§args: Vec<(String, String)>
§events: Vec<SpanEvent>
§is_complete: bool
§self_allocations: u64
§self_allocation_count: u64
§self_deallocations: u64
§self_deallocation_count: u64
§max_depth: OnceLock<u32>
§total_allocations: OnceLock<u64>
§total_deallocations: OnceLock<u64>
§total_persistent_allocations: OnceLock<u64>
§total_span_count: OnceLock<u64>
§total_allocation_count: OnceLock<u64>
§time_data: OnceLock<Box<SpanTimeData>>
§extra: OnceLock<Box<SpanExtra>>
§names: OnceLock<Box<SpanNames>>
Implementations§
Source§impl Span
impl Span
pub fn time_data(&self) -> &SpanTimeData
pub fn time_data_mut(&mut self) -> &mut SpanTimeData
pub fn extra(&self) -> &SpanExtra
pub fn names(&self) -> &SpanNames
Auto Trait Implementations§
impl !Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more