[][src]Struct tracing_subscriber::filter::Filter

pub struct Filter { /* fields omitted */ }

A Layer which filters spans and events based on a set of filter directives.

Methods

impl Filter[src]

pub const DEFAULT_ENV: &'static str[src]

The default environment variable used by Filter::from_default_env and Filter::try_from_default_env.

pub fn from_default_env() -> Self[src]

Returns a new Filter from the value of the RUST_LOG environment variable, ignoring any invalid filter directives.

pub fn from_env<A: AsRef<str>>(env: A) -> Self[src]

Returns a new Filter from the value of the given environment variable, ignoring any invalid filter directives.

pub fn new<S: AsRef<str>>(dirs: S) -> Self[src]

Returns a new Filter from the directives in the given string, ignoring any that are invalid.

pub fn try_new<S: AsRef<str>>(dirs: S) -> Result<Self, ParseError>[src]

Returns a new Filter from the directives in the given string, or an error if any are invalid.

pub fn try_from_default_env() -> Result<Self, FromEnvError>[src]

Returns a new Filter from the value of the RUST_LOG environment variable, or an error if the environment variable contains any invalid filter directives.

pub fn try_from_env<A: AsRef<str>>(env: A) -> Result<Self, FromEnvError>[src]

Returns a new Filter from the value of the given environment variable, or an error if the environment variable is unset or contains any invalid filter directives.

Trait Implementations

impl<S: Subscriber> Layer<S> for Filter[src]

impl<S> From<S> for Filter where
    S: AsRef<str>, 
[src]

impl Default for Filter[src]

impl Debug for Filter[src]

impl FromStr for Filter[src]

type Err = ParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Filter

impl Sync for Filter

impl Unpin for Filter

impl UnwindSafe for Filter

impl RefUnwindSafe for Filter

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]