Struct tracing_subscriber::field::display::Messages [−][src]
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]
V: MakeVisitor<T>,
type Visitor = Messages<V::Visitor>
The visitor type produced by this MakeVisitor.
fn make_visitor(&self, target: T) -> Self::Visitor[src]
impl<V> Visit for Messages<V> where
V: Visit, [src]
V: Visit,
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> VisitFmt for Messages<V> where
V: VisitFmt, [src]
V: VisitFmt,
impl<V, O> VisitOutput<O> for Messages<V> where
V: VisitOutput<O>, [src]
V: VisitOutput<O>,
fn finish(self) -> O[src]
fn visit<R>(self, fields: &R) -> Out where
R: RecordFields,
Self: Sized, [src]
R: RecordFields,
Self: Sized,
impl<V> VisitWrite for Messages<V> where
V: VisitWrite, [src]
V: VisitWrite,
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> 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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>, [src]
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
fn debug_alt(self) -> Alt<Self>[src]
fn display_messages(self) -> Messages<Self>[src]
fn delimited<D>(self, delimiter: D) -> Delimited<D, Self> where
D: AsRef<str> + Clone,
Self::Visitor: VisitFmt, [src]
D: AsRef<str> + Clone,
Self::Visitor: VisitFmt,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,