Trait script::dom::bindings::codegen::Bindings::ErrorEventBinding::ErrorEvent_Binding::ErrorEventMethods
source · 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, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: RootedTraceableBox<ErrorEventInit>,
) -> Result<Root<Dom<ErrorEvent>>, Error>;
}
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: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<ErrorEventInit>, ) -> Result<Root<Dom<ErrorEvent>>, Error>
Object Safety§
This trait is not object safe.