Struct tracing_subscriber::filter::FilterId
source · [−]pub struct FilterId(_);
Expand description
Uniquely identifies an individual Filter
instance in the context of
a Subscriber
.
When adding a Filtered
Layer
to a Subscriber
, the Subscriber
generates a FilterId
for that Filtered
layer. The Filtered
layer
will then use the generated ID to query whether a particular span was
previously enabled by that layer’s Filter
.
Note: Currently, the Registry
type provided by this crate is the
only Subscriber
implementation capable of participating in per-layer
filtering. Therefore, the FilterId
type cannot currently be constructed by
code outside of tracing-subscriber
. In the future, new APIs will be added to tracing-subscriber
to
allow non-Registry Subscriber
s to also participate in per-layer
filtering. When those APIs are added, subscribers will be responsible
for generating and assigning FilterId
s.
Trait Implementations
impl Copy for FilterId
Auto Trait Implementations
impl RefUnwindSafe for FilterId
impl Send for FilterId
impl Sync for FilterId
impl Unpin for FilterId
impl UnwindSafe for FilterId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more