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

Source
pub trait MakeOutput<T, Out>
where Self: MakeVisitor<T> + Sealed<(T, Out)>, Self::Visitor: VisitOutput<Out>,
{ // Provided method fn visit_with<F>(&self, target: T, fields: &F) -> Out where F: RecordFields { ... } }
Expand description

Extension trait implemented for all MakeVisitor implementations that produce a visitor implementing VisitOutput.

Provided Methods§

Source

fn visit_with<F>(&self, target: T, fields: &F) -> Out
where F: RecordFields,

Visits all fields in fields with a new visitor constructed from target.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, Out, M> MakeOutput<T, Out> for M
where M: MakeVisitor<T>, M::Visitor: VisitOutput<Out>,