pub struct Span {
pub track: Track,
pub id: u32,
pub parent: u32,
pub name: NameId,
pub origin: Origin,
pub start: u64,
pub dur: u64,
pub cpu: Option<u64>,
pub node: u64,
pub cut: bool,
}Expand description
A span closed: a name, a start and a length on its track, nested in its parent.
Fields§
§track: Track§id: u32Unique in the recording; 0 is no span.
parent: u32The span it was opened inside, or 0.
name: NameId§origin: Origin§start: u64§dur: u64§cpu: Option<u64>The thread’s time on a CPU over it, where the platform reads one.
node: u64The key of the node the builder had open as it began, or 0.
cut: boolLeft open when its frame ended, and closed there.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Forget for Span
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin 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