🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_tower

Trait GetSpan

Source
pub trait GetSpan<T>: Sealed<T> {
    // Required method
    fn span_for(&self, target: &T) -> Span;
}

Required Methods§

Source

fn span_for(&self, target: &T) -> Span

Implementations on Foreign Types§

Source§

impl<T> GetSpan<T> for Span

Source§

fn span_for(&self, _: &T) -> Span

Implementors§

Source§

impl<T, F> GetSpan<T> for F
where F: Fn(&T) -> Span,