Skip to main content

DomEventTrait

Trait DomEventTrait 

Source
pub trait DomEventTrait<D: DomTypes> {
    // Required methods
    fn new_inherited() -> Self;
    fn init_event(&self, type_: Atom, bubbles: bool, cancelable: bool);
    fn IsTrusted(&self) -> bool;
    fn fire(&self, cx: &mut JSContext, target: &D::EventTarget);
}
Expand description

Trait for subcrates to use DOM events.

Required Methods§

Source

fn new_inherited() -> Self

Source

fn init_event(&self, type_: Atom, bubbles: bool, cancelable: bool)

Source

fn IsTrusted(&self) -> bool

Source

fn fire(&self, cx: &mut JSContext, target: &D::EventTarget)

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§