pub(crate) trait DOMExceptionMethods<D>where
D: DomTypes,{
// Required methods
fn Code(&self) -> u16;
fn Name(&self) -> DOMString;
fn Message(&self) -> DOMString;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
message: DOMString,
name: DOMString,
) -> Result<Root<Dom<<D as DomTypes>::DOMException>>, Error>;
}Required Methods§
fn Code(&self) -> u16
fn Name(&self) -> DOMString
fn Message(&self) -> DOMString
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, message: DOMString, name: DOMString, ) -> Result<Root<Dom<<D as DomTypes>::DOMException>>, 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.