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§
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> ⓘ
Object Safety§
This trait is not object safe.