Trait GlobalEventTarget

Source
pub trait GlobalEventTarget {
    // Required methods
    fn add_event_listener_with_callback(name: &'static str, listener: &Function);
    fn remove_event_listener_with_callback(
        name: &'static str,
        listener: &Function,
    );
}

Required Methods§

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.

Implementors§