tracing_subscriber::field

Trait VisitFmt

Source
pub trait VisitFmt: VisitOutput<Result> {
    // Required method
    fn writer(&mut self) -> &mut dyn Write;
}
Expand description

Extension trait implemented by visitors to indicate that they write to a fmt::Write instance, and allow access to that writer.

Required Methods§

Source

fn writer(&mut self) -> &mut dyn Write

Returns the formatter that this visitor writes to.

Implementors§

Source§

impl<'a> VisitFmt for DefaultVisitor<'a>

Source§

impl<'a> VisitFmt for PrettyVisitor<'a>

Source§

impl<'a, F> VisitFmt for FieldFnVisitor<'a, F>
where F: Fn(&mut Writer<'a>, &Field, &dyn Debug) -> Result,

Source§

impl<D, V> VisitFmt for VisitDelimited<D, V>
where V: VisitFmt, D: AsRef<str>,

Source§

impl<V> VisitFmt for Alt<V>
where V: VisitFmt,

Source§

impl<V> VisitFmt for Messages<V>
where V: VisitFmt,