pub(crate) trait ErrorEventMethods<D>where
    D: DomTypes,{
    // Required methods
    fn Message(&self) -> DOMString;
    fn Filename(&self) -> DOMString;
    fn Lineno(&self) -> u32;
    fn Colno(&self) -> u32;
    fn Error(&self, cx: JSContext, retval: MutableHandle<'_, Value>);
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &<D as DomTypes>::GlobalScope,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<ErrorEventInit>,
    ) -> Result<Root<Dom<<D as DomTypes>::ErrorEvent>>, Error>;
}Required Methods§
fn Message(&self) -> DOMString
fn Filename(&self) -> DOMString
fn Lineno(&self) -> u32
fn Colno(&self) -> u32
fn Error(&self, cx: JSContext, retval: MutableHandle<'_, Value>)
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<ErrorEventInit>, ) -> Result<Root<Dom<<D as DomTypes>::ErrorEvent>>, Error>
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.