pub struct SpanRef<'a> {
pub(crate) span: &'a Span,
pub(crate) store: &'a Store,
pub(crate) index: usize,
}
Fields§
§span: &'a Span
§store: &'a Store
§index: usize
Implementations§
Source§impl<'a> SpanRef<'a>
impl<'a> SpanRef<'a>
pub fn id(&self) -> NonZeroUsize
pub fn index(&self) -> NonZeroUsize
pub fn parent(&self) -> Option<SpanRef<'a>>
pub fn start(&self) -> Timestamp
pub fn time_data(&self) -> &'a SpanTimeData
pub fn extra(&self) -> &'a SpanExtra
pub fn names(&self) -> &'a SpanNames
pub fn end(&self) -> Timestamp
pub fn is_complete(&self) -> bool
pub fn is_root(&self) -> bool
pub fn nice_name(&self) -> (&'a str, &'a str)
pub fn group_name(&self) -> &'a str
pub fn args(&self) -> impl Iterator<Item = (&str, &str)>
pub fn self_time(&self) -> Timestamp
pub fn self_allocations(&self) -> u64
pub fn self_deallocations(&self) -> u64
pub fn self_persistent_allocations(&self) -> u64
pub fn self_allocation_count(&self) -> u64
pub fn self_span_count(&self) -> u64
pub fn events_count(&self) -> usize
pub fn events(&self) -> impl Iterator<Item = SpanEventRef<'a>>
pub fn children( &self, ) -> impl DoubleEndedIterator<Item = SpanRef<'a>> + 'a + use<'a>
pub fn children_par(&self) -> impl ParallelIterator<Item = SpanRef<'a>> + 'a
pub fn total_time(&self) -> Timestamp
pub fn total_allocations(&self) -> u64
pub fn total_deallocations(&self) -> u64
pub fn total_persistent_allocations(&self) -> u64
pub fn total_allocation_count(&self) -> u64
pub fn total_span_count(&self) -> u64
pub fn corrected_self_time(&self) -> Timestamp
pub fn corrected_total_time(&self) -> Timestamp
pub fn max_depth(&self) -> u32
pub fn graph(&self) -> impl Iterator<Item = SpanGraphEventRef<'a>> + '_
pub fn bottom_up(self) -> impl Iterator<Item = SpanBottomUpRef<'a>>
pub fn search(&self, query: &str) -> impl Iterator<Item = SpanRef<'a>>
fn search_index(&self) -> &HashMap<String, Vec<NonZeroUsize>>
Trait Implementations§
impl<'a> Copy for SpanRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpanRef<'a>
impl<'a> RefUnwindSafe for SpanRef<'a>
impl<'a> Send for SpanRef<'a>
impl<'a> Sync for SpanRef<'a>
impl<'a> Unpin for SpanRef<'a>
impl<'a> UnwindSafe for SpanRef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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