Trait tracing_subscriber::field::VisitOutput [−][src]
pub trait VisitOutput<Out>: Visit {
fn finish(self) -> Out;
fn visit<R>(self, fields: &R) -> Out
where
R: RecordFields,
Self: Sized,
{ ... }
}
Expand description
A visitor that produces output once it has visited a set of fields.
Required methods
Provided methods
fn visit<R>(self, fields: &R) -> Out where
R: RecordFields,
Self: Sized,
fn visit<R>(self, fields: &R) -> Out where
R: RecordFields,
Self: Sized,
Visit a set of fields, and return the output of finishing the visitor once the fields have been visited.
Implementors
impl<'a> VisitOutput<Result<(), Error>> for DefaultVisitor<'a>
This is supported on crate feature
fmt
only.impl<'a> VisitOutput<Result<(), Error>> for JsonVisitor<'a>
This is supported on crate feature
fmt
only.impl<'a> VisitOutput<Result<(), Error>> for PrettyVisitor<'a>
This is supported on crate feature
fmt
only.impl<'a, F> VisitOutput<Result<(), Error>> for FieldFnVisitor<'a, F> where
F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result,
This is supported on crate feature
fmt
only.