Skip to main content

SpanExt

Trait SpanExt 

Source
pub trait SpanExt {
    // Required methods
    fn set_output(&self, output: &str);
    fn set_error(&self, error: &str);
}
Expand description

Extension trait for spans

Required Methods§

Source

fn set_output(&self, output: &str)

Set the span output

Source

fn set_error(&self, error: &str)

Mark the span as having an error

Implementations on Foreign Types§

Source§

impl SpanExt for Span

Source§

fn set_output(&self, output: &str)

Source§

fn set_error(&self, error: &str)

Implementors§