Struct tracing_capture::Storage
source · pub struct Storage { /* private fields */ }
Expand description
Storage of captured tracing information.
Storage
instances are not created directly; instead, they are wrapped in SharedStorage
and can be accessed via lock()
.
Implementations§
source§impl Storage
impl Storage
sourcepub fn all_spans(&self) -> CapturedSpans<'_> ⓘ
pub fn all_spans(&self) -> CapturedSpans<'_> ⓘ
Iterates over captured spans in the order of capture.
sourcepub fn root_spans(&self) -> CapturedSpans<'_> ⓘ
pub fn root_spans(&self) -> CapturedSpans<'_> ⓘ
Iterates over root spans (i.e., spans that do not have a captured parent span) in the order of capture.
sourcepub fn all_events(&self) -> CapturedEvents<'_> ⓘ
pub fn all_events(&self) -> CapturedEvents<'_> ⓘ
Iterates over all captured events in the order of capture.
sourcepub fn root_events(&self) -> CapturedEvents<'_> ⓘ
pub fn root_events(&self) -> CapturedEvents<'_> ⓘ
Iterates over root events (i.e., events that do not have a captured parent span) in the order of capture.
Trait Implementations§
source§impl<'a> ScanExt<'a> for &'a Storage
impl<'a> ScanExt<'a> for &'a Storage
Scans for Storage
are deep; they include all captured spans / events, not just root ones.
source§fn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>
fn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>
Creates a scanner for the spans contained by this holder. What is meant by “contained”
(i.e., whether the scan is deep or shallow), depends on the holder type and is documented
at the corresponding impl.
source§fn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>
fn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>
Creates a scanner for the events contained by this holder. What is meant by “contained”
(i.e., whether the scan is deep or shallow), depends on the holder type and is documented
at the corresponding impl.
Auto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl !UnwindSafe for Storage
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