A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/span/struct.Current.html below:

Current in tracing_core::span - Rust

pub struct Current {  }
Expand description

Indicates what the Subscriber considers the “current” span.

As subscribers may not track a notion of a current span, this has three possible states:

Source§ Source

Constructs a new Current that indicates the current context is a span with the given metadata and metadata.

Source

Constructs a new Current that indicates the current context is not in a span.

Source

Returns true if the Subscriber that constructed this Current tracks a current span.

If this returns true and id, metadata, or into_inner return None, that indicates that we are currently known to not be inside a span. If this returns false, those methods will also return None, but in this case, that is because the subscriber does not keep track of the currently-entered span.

Source

Consumes self and returns the span Id and Metadata of the current span, if one exists and is known.

Source

Borrows the Id of the current span, if one exists and is known.

Source

Borrows the Metadata of the current span, if one exists and is known.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4