pub struct TelemetryDisplay<'a, T>(/* private fields */)
where
T: ?Sized;Expand description
Wraps a value so telemetry-safe formatting can be used where Display is expected.
Implementations§
Source§impl<'a, T> TelemetryDisplay<'a, T>where
T: ToTelemetry + ?Sized,
impl<'a, T> TelemetryDisplay<'a, T>where
T: ToTelemetry + ?Sized,
Sourcepub fn new(value: &'a T) -> TelemetryDisplay<'a, T>
pub fn new(value: &'a T) -> TelemetryDisplay<'a, T>
Creates a Display adapter for telemetry backends that accept %value.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for TelemetryDisplay<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for TelemetryDisplay<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for TelemetryDisplay<'a, T>
impl<'a, T> Sync for TelemetryDisplay<'a, T>
impl<'a, T> Unpin for TelemetryDisplay<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for TelemetryDisplay<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for TelemetryDisplay<'a, T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more