mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-03 00:00:05 +02:00
trace: prepare tokio-trace for release (#1051)
This commit is contained in:
committed by
Carl Lerche
parent
fea1f780bc
commit
3ebca76a9a
@@ -8,9 +8,9 @@ pub use tokio_trace_core::subscriber::*;
|
||||
/// executing, new spans or events are dispatched to the subscriber that
|
||||
/// tagged that span, instead.
|
||||
///
|
||||
/// [`Span`]: ::span::Span
|
||||
/// [`Subscriber`]: ::Subscriber
|
||||
/// [`Event`]: ::Event
|
||||
/// [`Span`]: ../span/struct.Span.html
|
||||
/// [`Subscriber`]: ../subscriber/trait.Subscriber.html
|
||||
/// [`Event`]: :../event/struct.Event.html
|
||||
pub fn with_default<T, S>(subscriber: S, f: impl FnOnce() -> T) -> T
|
||||
where
|
||||
S: Subscriber + Send + Sync + 'static,
|
||||
|
||||
Reference in New Issue
Block a user