pub(crate) trait ErrorEventMethods<D: DomTypes> {
    // Required methods
    fn Message(&self) -> DOMString;
    fn Filename(&self) -> DOMString;
    fn Lineno(&self) -> u32;
    fn Colno(&self) -> u32;
    fn Error(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<ErrorEventInit>,
    ) -> Fallible<DomRoot<D::ErrorEvent>>;
}

Required Methods§

Source

fn Message(&self) -> DOMString

Source

fn Filename(&self) -> DOMString

Source

fn Lineno(&self) -> u32

Source

fn Colno(&self) -> u32

Source

fn Error(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<ErrorEventInit>, ) -> Fallible<DomRoot<D::ErrorEvent>>

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§