Enum amethyst::LogLevelFilter[][src]

#[repr(usize)]pub enum LogLevelFilter {

An enum representing the available verbosity level filters of the logger.

A LevelFilter may be compared directly to a Level. Use this type to get and set the maximum log level with max_level() and set_max_level.



A level lower than all log levels.


Corresponds to the Error log level.


Corresponds to the Warn log level.


Corresponds to the Info log level.


Corresponds to the Debug log level.


Corresponds to the Trace log level.


impl LevelFilter[src]

pub fn max() -> LevelFilter[src]

Returns the most verbose logging level filter.

pub fn to_level(&self) -> Option<Level>[src]

Converts self to the equivalent Level.

Returns None if self is LevelFilter::Off.

pub fn as_str(&self) -> &'static str[src]

Returns the string representation of the LevelFilter.

This returns the same string as the fmt::Display implementation.

Trait Implementations

impl Clone for LevelFilter[src]

impl Copy for LevelFilter[src]

impl Debug for LevelFilter[src]

impl<'de> Deserialize<'de> for LevelFilter[src]

impl Display for LevelFilter[src]

impl Eq for LevelFilter[src]

impl FromStr for LevelFilter[src]

type Err = ParseLevelError

The associated error which can be returned from parsing.

impl Hash for LevelFilter[src]

impl Ord for LevelFilter[src]

impl PartialEq<Level> for LevelFilter[src]

impl PartialEq<LevelFilter> for LevelFilter[src]

impl PartialOrd<Level> for LevelFilter[src]

impl PartialOrd<LevelFilter> for LevelFilter[src]

impl Serialize for LevelFilter[src]

impl StructuralEq for LevelFilter[src]

Auto Trait Implementations

impl RefUnwindSafe for LevelFilter[src]

impl Send for LevelFilter[src]

impl Sync for LevelFilter[src]

impl Unpin for LevelFilter[src]

impl UnwindSafe for LevelFilter[src]

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint

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

impl<T> Any for T where
    T: Any

impl<T> AnyEq for T where
    T: PartialEq<T> + Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Clone for T where
    T: Clone

impl<T> Config for T where
    T: for<'a> Deserialize<'a> + Serialize

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,