pub trait Decorator {
// Required method
fn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()>
where F: FnOnce(&mut dyn RecordDecorator) -> Result<()>;
}
Expand description
Output decorator
Trait implementing strategy of output formating in terms of IO, colors, etc.
Required Methods§
sourcefn with_record<F>(
&self,
_record: &Record<'_>,
_logger_values: &OwnedKVList,
f: F
) -> Result<()>
fn with_record<F>( &self, _record: &Record<'_>, _logger_values: &OwnedKVList, f: F ) -> Result<()>
Get a RecordDecorator
for a given record
This allows Decorator
to have on-stack data per processed Record
s
Object Safety§
This trait is not object safe.