pub 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, retval: MutableHandle<'_, Value>);
fn IsTrusted(&self) -> bool;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
type_: DOMString,
eventInitDict: RootedTraceableBox<ErrorEventInit>,
) -> Fallible<DomRoot<D::ErrorEvent>>;
}Required Methods§
fn Message(&self) -> DOMString
fn Filename(&self) -> DOMString
fn Lineno(&self) -> u32
fn Colno(&self) -> u32
fn Error(&self, retval: MutableHandle<'_, Value>)
fn IsTrusted(&self) -> bool
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, 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".