Struct tracing::field::DisplayValue
source · [−]pub struct DisplayValue<T>(_)
where
T: Display;
Expand description
A Value
which serializes using fmt::Display
.
Uses record_debug
in the Value
implementation to
avoid an unnecessary evaluation.
Trait Implementations
sourceimpl<T> Clone for DisplayValue<T> where
T: Clone + Display,
impl<T> Clone for DisplayValue<T> where
T: Clone + Display,
sourcepub fn clone(&self) -> DisplayValue<T>
pub fn clone(&self) -> DisplayValue<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for DisplayValue<T> where
T: Display,
impl<T> Debug for DisplayValue<T> where
T: Display,
sourceimpl<T> Display for DisplayValue<T> where
T: Display,
impl<T> Display for DisplayValue<T> where
T: Display,
Auto Trait Implementations
impl<T> RefUnwindSafe for DisplayValue<T> where
T: RefUnwindSafe,
impl<T> Send for DisplayValue<T> where
T: Send,
impl<T> Sync for DisplayValue<T> where
T: Sync,
impl<T> Unpin for DisplayValue<T> where
T: Unpin,
impl<T> UnwindSafe for DisplayValue<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more