Function flame::start_guard
[−]
[src]
pub fn start_guard<S: Into<StrCow>>(name: S) -> SpanGuard
Starts a Span
and also returns a SpanGuard
.
When the SpanGuard
is dropped (or .end()
is called on it),
the span will automatically be ended.