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
, { ... } }

A visitor that produces output once it has visited a set of fields.

Required methods

fn finish(self) -> Out[src]

Completes the visitor, returning any output.

This is called once a full set of fields has been visited.

Loading content...

Provided methods

fn visit<R>(self, fields: &R) -> Out where
    R: RecordFields,
    Self: Sized
[src]

Visit a set of fields, and return the output of finishing the visitor once the fields have been visited.

Loading content...

Implementors

impl<'a> VisitOutput<Result<(), Error>> for DefaultVisitor<'a>[src]

impl<'a> VisitOutput<Result<(), Error>> for JsonVisitor<'a>[src]

impl<'a> VisitOutput<Result<(), Error>> for PrettyVisitor<'a>[src]

impl<'a, F> VisitOutput<Result<(), Error>> for FieldFnVisitor<'a, F> where
    F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result
[src]

impl<D, V> VisitOutput<Result<(), Error>> for VisitDelimited<D, V> where
    V: VisitFmt,
    D: AsRef<str>, 
[src]

impl<V, O> VisitOutput<O> for Alt<V> where
    V: VisitOutput<O>, 
[src]

impl<V, O> VisitOutput<O> for Messages<V> where
    V: VisitOutput<O>, 
[src]

Loading content...