Trait 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: F) -> AllowFuture<F>
       where F: Future { ... }
}

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: F) -> AllowFuture<F>
where F: Future,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Warning for copy_value_hoisted

Source§

impl Warning for signal_read_and_write_in_reactive_scope

Source§

impl Warning for signal_write_in_component_body

Implementors§