Trait tracing_subscriber::field::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 JsonVisitor<'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,