pub struct Span { /* private fields */ }
Expand description
A handle representing a span of execution.
The trace span will be ended when this type is dropped.
Implementations§
Source§impl Span
impl Span
Sourcepub fn emit_value(&self, value: u64)
pub fn emit_value(&self, value: u64)
Emit a numeric value associated with this span.
Sourcepub fn emit_color(&self, color: u32)
pub fn emit_color(&self, color: u32)
Emit a color associated with this span.
The color is specified as RGB. It is most straightforward to specify them as hex literals
such as 0xFF0000
for red, 0x00FF00
for green or 0x0000FF
for blue.
Trait Implementations§
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