pub trait DomEventTrait<D>where
D: DomTypes,{
// Required methods
fn new_inherited() -> Self;
fn init_event(
&self,
type_: Atom<AtomStaticSet>,
bubbles: bool,
cancelable: bool,
);
fn IsTrusted(&self) -> bool;
fn fire(&self, cx: &mut JSContext, target: &<D as DomTypes>::EventTarget);
}Expand description
Trait for subcrates to use DOM events.
Required Methods§
fn new_inherited() -> Self
fn init_event( &self, type_: Atom<AtomStaticSet>, bubbles: bool, cancelable: bool, )
fn IsTrusted(&self) -> bool
fn fire(&self, cx: &mut JSContext, target: &<D as DomTypes>::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.