pub trait EventTargetMethods {
    // Required methods
    fn AddEventListener(
        &self,
        type_: DOMString,
        callback: Option<Rc<EventListener>>,
        options: AddEventListenerOptionsOrBoolean,
    );
    fn RemoveEventListener(
        &self,
        type_: DOMString,
        callback: Option<Rc<EventListener>>,
        options: EventListenerOptionsOrBoolean,
    );
    fn DispatchEvent(
        &self,
        event: &Event,
        _can_gc: CanGc,
    ) -> Result<bool, Error>;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<EventTarget>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§