pub struct Span { /* private fields */ }Expand description
A stretch of the session in progress that a record describes: stamped when it opens, timed on the session’s clock, and recorded when it closes, so everything stamped meanwhile lies inside it.
Implementations§
Source§impl Span
impl Span
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Opens a span now, starting the session if there is none. None when
recording is off.
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 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