🛈 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 VisitWrite

Source
pub trait VisitWrite: VisitOutput<Result<(), Error>> {
    // Required method
    fn writer(&mut self) -> &mut dyn Write;
}
Available on crate feature std only.
Expand description

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

Required Methods§

Source

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

Returns the writer that this visitor writes to.

Implementors§

Source§

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

Source§

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