ProvideStyle

Trait ProvideStyle 

Source
pub trait ProvideStyle {
    // Required method
    fn for_metadata(
        &self,
        metadata: &'static Metadata<'static>,
    ) -> Cow<'_, Style>;
}
Expand description

A value that can provide a Style for a given tracing event.

Required Methods§

Source

fn for_metadata(&self, metadata: &'static Metadata<'static>) -> Cow<'_, Style>

Provide a Style for a given set of tracing metadata.

In the future we may want to give implementers access to more information, but all events contain metadata, so we can provide default implementations for future methods.

Implementors§