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§
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>>
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.