A RetroSearch Logo

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

Search Query:

Showing content from https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.LevelFilter.html below:

LevelFilter in tracing_subscriber::filter - Rust

pub struct LevelFilter();
Expand description

A filter comparable to a verbosity Level.

If a Level is considered less than or equal to a LevelFilter, it should be considered enabled; if greater than the LevelFilter, that level is disabled. See LevelFilter::current for more details.

Note that this is essentially identical to the Level type, but with the addition of an OFF level that completely disables all trace instrumentation.

See the documentation for the Level type to see how Levels and LevelFilters interact.

Source§ Source

The “off” level.

Designates that trace instrumentation should be completely disabled.

Source

The “error” level.

Designates very serious errors.

Source

The “warn” level.

Designates hazardous situations.

Source

The “info” level.

Designates useful information.

Source

The “debug” level.

Designates lower priority information.

Source

The “trace” level.

Designates very low priority, often extremely verbose, information.

Source

Returns a LevelFilter that enables spans and events with verbosity up to and including level.

Source

Returns the most verbose Level that this filter accepts, or None if it is OFF.

Source

Returns a LevelFilter that matches the most verbose Level that any currently active Subscriber will enable.

User code should treat this as a hint. If a given span or event has a level higher than the returned LevelFilter, it will not be enabled. However, if the level is less than or equal to this value, the span or event is not guaranteed to be enabled; the subscriber will still filter each callsite individually.

Therefore, comparing a given span or event’s level to the returned LevelFilter can be used for determining if something is disabled, but should not be used for determining if something is enabled.

Source§ Source§

The log type that this type can be converted into.

Source§

Returns the log equivalent of self.

Source§ Source§ Source§ Source§

Available on crate features registry and std only.

Source§ Source§ Source§ Source§

Called before the filtered [

Layer]'s [

on_event

], to determine if

on_event` should be called.

Read more Source§

Notifies this filter that a new span was constructed with the given

Attributes

and

Id

.

Read more Source§

Notifies this filter that a span with the given

Id

recorded the given

values

.

Read more Source§

Notifies this filter that a span with the given ID was entered.

Read more Source§

Notifies this filter that a span with the given ID was exited.

Read more Source§

Notifies this filter that a span with the given ID has been closed.

Read more Source§ Source§

Converts to this type from the input type.

Source§

Available on crate features env-filter and std only.

Source§

Converts to this type from the input type.

Source§ Source§

Converts to this type from the input type.

Source§ Source§

The associated error which can be returned from parsing.

Source§

Parses a string

s

to return a value of this type.

Read more Source§ Source§ Source§ Source§ Source§ Source§ Source§

Notifies this layer that a new span was constructed with the given Attributes and Id.

Source§

Notifies this layer that a span with the given Id recorded the given values.

Source§

Notifies this layer that a span with the ID span recorded that it follows from the span with the ID follows.

Source§ Source§

Notifies this layer that an event has occurred.

Source§

Notifies this layer that a span with the given ID was entered.

Source§

Notifies this layer that the span with the given ID was exited.

Source§

Notifies this layer that the span with the given ID has been closed.

Source§

Notifies this layer that a span ID has been cloned, and that the subscriber returned a different ID.

Source§

Composes this layer around the given

Layer

, returning a

Layered

struct implementing

Layer

.

Read more Source§ Source§

Available on crate features registry and std only.

Source§

Available on crate features alloc or std only.

Source§ Source§ Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§ Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§ Source§

This method returns an ordering between

self

and

other

values if one exists.

Read more Source§

Tests less than (for

self

and

other

) and is used by the

<

operator.

Read more Source§

Tests less than or equal to (for

self

and

other

) and is used by the

<=

operator.

Read more Source§

Tests greater than (for

self

and

other

) and is used by the

>

operator.

Read more Source§

Tests greater than or equal to (for

self

and

other

) and is used by the

>=

operator.

Read more Source§ Source§

This method returns an ordering between

self

and

other

values if one exists.

Read more Source§

Tests less than (for

self

and

other

) and is used by the

<

operator.

Read more Source§

Tests less than or equal to (for

self

and

other

) and is used by the

<=

operator.

Read more Source§

Tests greater than (for

self

and

other

) and is used by the

>

operator.

Read more Source§

Tests greater than or equal to (for

self

and

other

) and is used by the

>=

operator.

Read more Source§ Source§ Source§ Source§ Source§ Source§ Source§ Source§ 🔬This is a nightly-only experimental API. (clone_to_uninit #126799)

Performs copy-assignment from

self

to

dest

.

Read more Source§ Source§

Available on crate features registry and std only.

Combines this

Filter

with another

Filter

s so that spans and events are enabled if and only if

both

filters return

true

.

Read more Source§

Available on crate features registry and std only.

Combines two

Filter

s so that spans and events are enabled if

either

filter returns

true

.

Read more Source§

Available on crate features registry and std only.

Inverts

self

, returning a filter that enables spans and events only if

self

would

not

enable them.

Read more Source§

Available on crate features registry and std only.

Source§ Source§

Returns the argument unchanged.

Source§ Source§ Source§

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§ Source§

The resulting type after obtaining ownership.

Source§

Creates owned data from borrowed data, usually by cloning.

Read more Source§

Uses borrowed data to replace owned data, usually by cloning.

Read more Source§ Source§ Source§

The type returned in the event of a conversion error.

Source§

Performs the conversion.

Source§ Source§

The type returned in the event of a conversion error.

Source§

Performs the conversion.

Source§

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