pub(crate) trait AddSpan: Sized {
type Output;
// Required methods
fn with_span(self) -> Self::Output;
fn with_span_static(
self,
span: Span,
description: &'static str,
) -> Self::Output;
fn with_span_context(self, span_context: SpanContext) -> Self::Output;
fn with_span_handle<T, A: SpanProvider<T>>(
self,
handle: Handle<T>,
arena: &A,
) -> Self::Output;
}
Expand description
Convenience trait for Error
to be able to apply spans to anything.
Required Associated Types§
Required Methods§
sourcefn with_span(self) -> Self::Output
fn with_span(self) -> Self::Output
See WithSpan::new
.
sourcefn with_span_static(self, span: Span, description: &'static str) -> Self::Output
fn with_span_static(self, span: Span, description: &'static str) -> Self::Output
See WithSpan::with_span
.
sourcefn with_span_context(self, span_context: SpanContext) -> Self::Output
fn with_span_context(self, span_context: SpanContext) -> Self::Output
sourcefn with_span_handle<T, A: SpanProvider<T>>(
self,
handle: Handle<T>,
arena: &A,
) -> Self::Output
fn with_span_handle<T, A: SpanProvider<T>>( self, handle: Handle<T>, arena: &A, ) -> Self::Output
Object Safety§
This trait is not object safe.