pub trait LayerBuilder: Send + Sync {
// Required method
fn build_layer<S>(
&self,
config: &TracingConfig,
) -> Result<Box<dyn Layer<S> + Send + Sync + 'static>, Error>
where S: Subscriber + for<'a> LookupSpan<'a>;
}Available on crate feature
tracing_subscriber_ext only.Expand description
Trait for building format-specific tracing layers
Required Methods§
fn build_layer<S>(
&self,
config: &TracingConfig,
) -> Result<Box<dyn Layer<S> + Send + Sync + 'static>, Error>where
S: Subscriber + for<'a> LookupSpan<'a>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.