pub trait SpanName: Sealed {
// Required methods
fn begin_thread(&self, loc: &'static SpanLocation);
fn end_thread(&self, loc: &'static SpanLocation);
fn begin_async(
&self,
loc: &'static SpanLocation,
parent: u64,
depth: u32,
) -> u64;
fn end_async(
&self,
span_id: u64,
parent: u64,
loc: &'static SpanLocation,
depth: u32,
);
}Required Methods§
fn begin_thread(&self, loc: &'static SpanLocation)
fn end_thread(&self, loc: &'static SpanLocation)
fn begin_async( &self, loc: &'static SpanLocation, parent: u64, depth: u32, ) -> u64
fn end_async( &self, span_id: u64, parent: u64, loc: &'static SpanLocation, depth: u32, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".