Trait tracing_subscriber::field::MakeVisitor [−][src]
Creates new visitors.
A type implementing MakeVisitor
represents a composable factory for types
implementing the Visit
trait. The MakeVisitor
trait defines
a single function, make_visitor
, which takes in a T
-typed target
and
returns a type implementing Visit
configured for that target. A target may
be a string, output stream, or data structure that the visitor will record
data to, configuration variables that determine the visitor’s behavior, or
()
when no input is required to produce a visitor.
Associated Types
Loading content...Required methods
fn make_visitor(&self, target: T) -> Self::Visitor
[src]
Make a new visitor for the provided target
.
Implementors
impl<'a> MakeVisitor<&'a mut (dyn Write + 'a)> for DefaultFields
[src]
type Visitor = DefaultVisitor<'a>
fn make_visitor(&self, target: &'a mut dyn Write) -> Self::Visitor
[src]
impl<'a, F> MakeVisitor<&'a mut (dyn Write + 'a)> for FieldFn<F> where
F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result + Clone,
[src]
F: Fn(&mut dyn Write, &Field, &dyn Debug) -> Result + Clone,
type Visitor = FieldFnVisitor<'a, F>
fn make_visitor(&self, writer: &'a mut dyn Write) -> Self::Visitor
[src]
impl<D, V, T> MakeVisitor<T> for Delimited<D, V> where
D: AsRef<str> + Clone,
V: MakeVisitor<T>,
V::Visitor: VisitFmt,
[src]
D: AsRef<str> + Clone,
V: MakeVisitor<T>,
V::Visitor: VisitFmt,
type Visitor = VisitDelimited<D, V::Visitor>
fn make_visitor(&self, target: T) -> Self::Visitor
[src]
impl<T, V> MakeVisitor<T> for Alt<V> where
V: MakeVisitor<T>,
[src]
V: MakeVisitor<T>,
impl<T, V> MakeVisitor<T> for Messages<V> where
V: MakeVisitor<T>,
[src]
V: MakeVisitor<T>,
impl<T, V, F> MakeVisitor<T> for F where
F: Fn(T) -> V,
V: Visit,
[src]
F: Fn(T) -> V,
V: Visit,