pub struct FilterId(/* private fields */);registry and std only.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 Subscribers to also participate in per-layer
filtering. When those APIs are added, subscribers will be responsible
for generating and assigning FilterIds.
Trait Implementations§
impl Copy for FilterId
Auto Trait Implementations§
impl Freeze for FilterId
impl RefUnwindSafe for FilterId
impl Send for FilterId
impl Sync for FilterId
impl Unpin for FilterId
impl UnwindSafe for FilterId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes