[][src]Trait tracing_subscriber::fmt::FormatFields

pub trait FormatFields<'writer> {
    fn format_fields<R: RecordFields>(
        &self,
        writer: &'writer mut dyn Write,
        fields: R
    ) -> Result; }
This is supported on feature="fmt" only.

A type that can format a set of fields to a fmt::Write.

FormatFields is primarily used in the context of FmtSubscriber. Each time a span or event with fields is recorded, the subscriber will format those fields with its associated FormatFields implementation.

Required methods

fn format_fields<R: RecordFields>(
    &self,
    writer: &'writer mut dyn Write,
    fields: R
) -> Result

This is supported on feature="fmt" only.

Format the provided fields to the provided writer, returning a result.

Loading content...

Implementors

impl<'a, S, N> FormatFields<'a> for FmtContext<'a, S, N> where
    S: Subscriber + for<'lookup> LookupSpan<'lookup>,
    N: for<'writer> FormatFields<'writer> + 'static, 
[src]

impl<'writer, M> FormatFields<'writer> for M where
    M: MakeOutput<&'writer mut dyn Write, Result>,
    M::Visitor: VisitFmt + VisitOutput<Result>, 
[src]

Loading content...