Benign cargo Download

dispatcher.rs

SHA-2568279c019ecceae81e47407323cebe8f7a017abbf4fd6b5314fb88b7b1c9ec26e
Malecule∅

Evidence

English function-word token "the" lines 1–9
1:9… atches trace events to [`Subscriber`]s.
2//!
3//! The _dispatcher_ is the component of the tracing system which is responsible
4//! for forwarding trace data from the instrumentation points that generate it
5//! to the subscriber that collects it.
6//!
7//! # Using the Trace Dispatcher
8//!
9// …
English function-word token "and" lines 17–22
17:10… are two methods for doing so: [`with_default`] and
18//! [`set_global_default`]. `with_default` sets the default subscriber for the
19//! duration of a scope, while `set_global_default` sets a default subscriber
20//! for the entire process.
21//!
22//! To use either …
English function-word token "with" lines 124–128
124:8… et_default`] function, which executes a closure with a reference to the
125//! currently default `Dispatch`. This is used primarily by `tracing`
126//! instrumentation.
127//!
128//! [`Subscriber`]: struct.Subscriber.h …
imports tracing_core::dispatcher::DefaultGuard lines 134–148
134:8… ttr(docsrs, doc(cfg(feature = "std")))]
135pub use tracing_core::dispatcher::set_default;
136#[cfg(feature = "std")]
137#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
138pub use tracing_core::dispatcher::with_default;
139#[cfg(feature = "std")]
140#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
141pub use tracing_core::dispatcher::DefaultGuard;
142pub use tracing_core::dispatcher::{
143 get_default, set_global_default, Dispatch, SetGlobalDefaultError,
144};
145
146/// Private API for internal use by tracing's macros.
147///
148/// This function is *not* considered part of `tracing`'s …
imports tracing_core::dispatcher::has_been_set lines 150–152
150:11… say we didn;'t warn you.
151#[doc(hidden)]
152pub use tracing_core::dispatcher::has_been_set;

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.