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]

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<V: Clone> Clone for Messages<V>[src]

impl<V: Debug> Debug for Messages<V>[src]

impl<T, V> MakeVisitor<T> for Messages<V> where
    V: MakeVisitor<T>, 
[src]

type Visitor = Messages<V::Visitor>

The visitor type produced by this MakeVisitor.

impl<V> Visit for Messages<V> where
    V: Visit
[src]

fn record_str(&mut self, field: &Field, value: &str)[src]

Visit a string value.

impl<V> VisitFmt for Messages<V> where
    V: VisitFmt
[src]

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

impl<V> VisitWrite for Messages<V> where
    V: VisitWrite
[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Messages<V> where
    V: RefUnwindSafe

impl<V> Send for Messages<V> where
    V: Send

impl<V> Sync for Messages<V> where
    V: Sync

impl<V> Unpin for Messages<V> where
    V: Unpin

impl<V> UnwindSafe for Messages<V> where
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, M> MakeExt<T> for M where
    M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.