#[non_exhaustive]pub struct ThreadLocalDiagnostic {}
Expand description
A diagnostic that stores key-value pairs in a thread-local map.
§Example
use logforth_core::diagnostic::ThreadLocalDiagnostic;
ThreadLocalDiagnostic::insert("key", "value");
Implementations§
Trait Implementations§
Source§impl Clone for ThreadLocalDiagnostic
impl Clone for ThreadLocalDiagnostic
Source§fn clone(&self) -> ThreadLocalDiagnostic
fn clone(&self) -> ThreadLocalDiagnostic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ThreadLocalDiagnostic
impl Debug for ThreadLocalDiagnostic
Source§impl Default for ThreadLocalDiagnostic
impl Default for ThreadLocalDiagnostic
Source§fn default() -> ThreadLocalDiagnostic
fn default() -> ThreadLocalDiagnostic
Returns the “default value” for a type. Read more
Source§impl Diagnostic for ThreadLocalDiagnostic
impl Diagnostic for ThreadLocalDiagnostic
impl Copy for ThreadLocalDiagnostic
Auto Trait Implementations§
impl Freeze for ThreadLocalDiagnostic
impl RefUnwindSafe for ThreadLocalDiagnostic
impl Send for ThreadLocalDiagnostic
impl Sync for ThreadLocalDiagnostic
impl Unpin for ThreadLocalDiagnostic
impl UnwindSafe for ThreadLocalDiagnostic
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