pub struct FnWrapper<F>(pub F);
Expand description
A wrapper around a function that can be used to generate a key-value pair, make or enrich spans.
Tuple Fields§
§0: F
Trait Implementations§
source§impl<T, F> EnrichSpan<T> for FnWrapper<F>
impl<T, F> EnrichSpan<T> for FnWrapper<F>
fn enrich_span(&self, span: &Span, t: &T)
Auto Trait Implementations§
impl<F> Freeze for FnWrapper<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnWrapper<F>where
F: RefUnwindSafe,
impl<F> Send for FnWrapper<F>where
F: Send,
impl<F> Sync for FnWrapper<F>where
F: Sync,
impl<F> Unpin for FnWrapper<F>where
F: Unpin,
impl<F> UnwindSafe for FnWrapper<F>where
F: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)