CommandEventMethods

pub trait CommandEventMethods<D: DomTypes> {
    // Required methods
    fn GetSource(&self) -> Option<DomRoot<D::Element>>;
    fn Command(&self) -> DOMString;
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &CommandEventInit<D>,
    ) -> Fallible<DomRoot<D::CommandEvent>>;
}

Required Methods§

Source

fn GetSource(&self) -> Option<DomRoot<D::Element>>

Source

fn Command(&self) -> DOMString

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &CommandEventInit<D>, ) -> Fallible<DomRoot<D::CommandEvent>>

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§