pub struct SpanRecord {
pub name: &'static str,
pub duration_ns: u64,
}Expand description
A single recorded profiling span.
This is a Copy value stored in the thread-local ring buffer so that the
HUD can iterate over recent spans without allocation.
Fields§
§name: &'static strThe static name label of the span.
duration_ns: u64The measured duration of the span, in nanoseconds.
Trait Implementations§
Source§impl Clone for SpanRecord
impl Clone for SpanRecord
Source§fn clone(&self) -> SpanRecord
fn clone(&self) -> SpanRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpanRecord
Source§impl Debug for SpanRecord
impl Debug for SpanRecord
impl Eq for SpanRecord
Source§impl PartialEq for SpanRecord
impl PartialEq for SpanRecord
impl StructuralPartialEq for SpanRecord
Auto Trait Implementations§
impl Freeze for SpanRecord
impl RefUnwindSafe for SpanRecord
impl Send for SpanRecord
impl Sync for SpanRecord
impl Unpin for SpanRecord
impl UnsafeUnpin for SpanRecord
impl UnwindSafe for SpanRecord
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