pub struct SpanHandle { /* private fields */ }Expand description
Active span handle.
Implementations§
Source§impl SpanHandle
impl SpanHandle
Sourcepub const fn context(&self) -> &TraceContext
pub const fn context(&self) -> &TraceContext
Return the span trace context.
Sourcepub fn into_context(self) -> TraceContext
pub fn into_context(self) -> TraceContext
Consume the handle into its trace context.
Trait Implementations§
Source§impl Clone for SpanHandle
impl Clone for SpanHandle
Source§fn clone(&self) -> SpanHandle
fn clone(&self) -> SpanHandle
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 moreAuto Trait Implementations§
impl Freeze for SpanHandle
impl RefUnwindSafe for SpanHandle
impl Send for SpanHandle
impl Sync for SpanHandle
impl Unpin for SpanHandle
impl UnsafeUnpin for SpanHandle
impl UnwindSafe for SpanHandle
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