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) -> Result<bool, Error>;
}

Required Methods§

Implementors§