[−][src]Struct tracing_fmt::filter::env::EnvFilter
Methods
impl EnvFilter
[src]
pub fn from_default_env() -> Self
[src]
Returns a new EnvFilter
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 EnvFilter
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 EnvFilter
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 EnvFilter
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 EnvFilter
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 EnvFilter
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<N> Filter<N> for EnvFilter
[src]
fn callsite_enabled(&self, metadata: &Metadata, _: &Context<N>) -> Interest
[src]
fn enabled<'a>(&self, metadata: &Metadata, ctx: &Context<'a, N>) -> bool
[src]
impl Default for EnvFilter
[src]
impl<S> From<S> for EnvFilter where
S: AsRef<str>,
[src]
S: AsRef<str>,
impl Display for EnvFilter
[src]
impl Debug for EnvFilter
[src]
impl FromStr for EnvFilter
[src]
Auto Trait Implementations
impl Sync for EnvFilter
impl Send for EnvFilter
impl Unpin for EnvFilter
impl RefUnwindSafe for EnvFilter
impl UnwindSafe for EnvFilter
Blanket Implementations
impl<'a, F, N> Filter<N> for F where
F: Fn(&Metadata, &Context<N>) -> bool,
N: NewVisitor<'a>,
[src]
F: Fn(&Metadata, &Context<N>) -> bool,
N: NewVisitor<'a>,
fn enabled(&Self, &Metadata, &Context<N>) -> bool
[src]
fn callsite_enabled(&self, metadata: &Metadata, ctx: &Context<N>) -> Interest
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,