Struct sp_tracing::span::Entered
source · [−]pub struct Entered<'a> { /* private fields */ }
Expand description
A guard representing a span which has been entered and is currently executing.
When the guard is dropped, the span will be exited.
This is returned by the Span::enter
function.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Entered<'a>
impl<'a> Send for Entered<'a>
impl<'a> Sync for Entered<'a>
impl<'a> Unpin for Entered<'a>
impl<'a> !UnwindSafe for Entered<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more