Skip to main content

SpanGuard

Trait SpanGuard 

Source
pub trait SpanGuard {
    // Required method
    fn end(self);
}
Expand description

A guard that ends a span when dropped.

Required Methods§

Source

fn end(self)

Ends the span when dropped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§