Skip to main content

SpanName

Trait SpanName 

Source
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§

Source

fn begin_thread(&self, loc: &'static SpanLocation)

Source

fn end_thread(&self, loc: &'static SpanLocation)

Source

fn begin_async( &self, loc: &'static SpanLocation, parent: u64, depth: u32, ) -> u64

Source

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".

Implementors§