pub struct TracingContextLayer<F> { /* private fields */ }
Expand description
TracingContextLayer
provides an implementation of a Layer
for TracingContext
.
Implementations§
Source§impl<F> TracingContextLayer<F>
impl<F> TracingContextLayer<F>
Sourcepub fn new(label_filter: F) -> Self
pub fn new(label_filter: F) -> Self
Creates a new TracingContextLayer
.
Source§impl TracingContextLayer<IncludeAll>
impl TracingContextLayer<IncludeAll>
Sourcepub fn all() -> Self
pub fn all() -> Self
Creates a new TracingContextLayer
.
Source§impl TracingContextLayer<Allowlist>
impl TracingContextLayer<Allowlist>
Sourcepub fn only_allow<I, S>(allowed: I) -> Self
pub fn only_allow<I, S>(allowed: I) -> Self
Creates a new TracingContextLayer
that only allows labels contained
in a predefined list.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for TracingContextLayer<F>where
F: Freeze,
impl<F> RefUnwindSafe for TracingContextLayer<F>where
F: RefUnwindSafe,
impl<F> Send for TracingContextLayer<F>where
F: Send,
impl<F> Sync for TracingContextLayer<F>where
F: Sync,
impl<F> Unpin for TracingContextLayer<F>where
F: Unpin,
impl<F> UnwindSafe for TracingContextLayer<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