Struct tracing_subscriber::field::display::Messages [−][src]
pub struct Messages<V>(_);
A visitor wrapper that ensures any strings named “message” are formatted
using fmt::Display
Implementations
impl<V> Messages<V>
[src]
impl<V> Messages<V>
[src]pub fn new(inner: V) -> Self
[src]
Returns a new MakeVisitor
implementation that will wrap inner
so
that any strings named message
are formatted using fmt::Display
.
Trait Implementations
impl<T, V> MakeVisitor<T> for Messages<V> where
V: MakeVisitor<T>,
[src]
impl<T, V> MakeVisitor<T> for Messages<V> where
V: MakeVisitor<T>,
[src]impl<V> Visit for Messages<V> where
V: Visit,
[src]
impl<V> Visit for Messages<V> where
V: Visit,
[src]fn record_i64(&mut self, field: &Field, value: i64)
[src]
fn record_u64(&mut self, field: &Field, value: u64)
[src]
fn record_bool(&mut self, field: &Field, value: bool)
[src]
fn record_str(&mut self, field: &Field, value: &str)
[src]
Visit a string value.
fn record_debug(&mut self, field: &Field, value: &dyn Debug)
[src]
pub fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
[src]
impl<V, O> VisitOutput<O> for Messages<V> where
V: VisitOutput<O>,
[src]
impl<V, O> VisitOutput<O> for Messages<V> where
V: VisitOutput<O>,
[src]impl<V> VisitWrite for Messages<V> where
V: VisitWrite,
[src]
impl<V> VisitWrite for Messages<V> where
V: VisitWrite,
[src]Auto Trait Implementations
impl<V> RefUnwindSafe for Messages<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for Messages<V> where
V: Send,
V: Send,
impl<V> Sync for Messages<V> where
V: Sync,
V: Sync,
impl<V> Unpin for Messages<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for Messages<V> where
V: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
[src]
impl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
[src]