Trait warnings::Warning

source ·
pub trait Warning: 'static {
    const ID: WarningId;

    // Provided methods
    fn enabled() -> bool { ... }
    fn if_enabled(item: impl FnOnce()) { ... }
    fn allow<O>(item: impl FnOnce() -> O) -> O { ... }
    fn allow_async<F: Future>(future: F) -> AllowFuture<F>  { ... }
}

Required Associated Constants§

Provided Methods§

source

fn enabled() -> bool

source

fn if_enabled(item: impl FnOnce())

source

fn allow<O>(item: impl FnOnce() -> O) -> O

source

fn allow_async<F: Future>(future: F) -> AllowFuture<F>

Object Safety§

This trait is not object safe.

Implementors§