🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

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 VisitFmt for DefaultVisitor<'_>

Available on crate features fmt and std only.
Source§

impl VisitFmt for JsonVisitor<'_>

Available on crate features fmt and std only.
Source§

impl VisitFmt for PrettyVisitor<'_>

Available on crate features fmt and std only.
Source§

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

Available on crate features fmt and std only.
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,