pub struct Span { /* private fields */ }
Expand description

A Span records a single execution of code associated with a CallSite.

This is not usually constructed manually but with either the spanned or instrument macros.

Implementations

Create a new Span associated with the given callsite.

Enter the span, the span will automatically be exited when the SpanGuard is dropped.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.