Struct RuntimeError
#[repr(transparent)]
pub struct RuntimeError { /* private fields */ }
The WebAssembly.RuntimeError() constructor creates a new WebAssembly
RuntimeError object — the type that is thrown whenever WebAssembly
specifies a trap.
Implementations
impl RuntimeError
fn new(message: &str) -> RuntimeErrorThe
WebAssembly.RuntimeError()constructor creates a new WebAssemblyRuntimeErrorobject — the type that is thrown whenever WebAssembly specifies a trap.
impl RuntimeError
fn new_with_options(message: &str, options: &ErrorOptions) -> RuntimeErrorCreates a new
WebAssembly.RuntimeErrorwith the given message and a typedErrorOptionsdictionary whosecauseproperty indicates the original cause of the error.
Trait Implementations
impl AsRef<Error> for RuntimeError
fn as_ref(&self) -> &Error
impl AsRef<JsValue> for RuntimeError
fn as_ref(&self) -> &JsValue
impl AsRef<RuntimeError> for RuntimeError
fn as_ref(&self) -> &RuntimeError
impl Clone for RuntimeError
fn clone(&self) -> Self
impl Debug for RuntimeError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for RuntimeError
type Target = Error;fn deref(&self) -> &Error
impl Eq for RuntimeError
impl ErasableGeneric for RuntimeError
type Repr = JsValue;
impl From<JsValue> for RuntimeError
fn from(obj: JsValue) -> Self
impl FromWasmAbi for RuntimeError
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for RuntimeError
where
RuntimeError: JsGeneric,
type JsCanon = RuntimeError;fn to_js(self) -> RuntimeError
impl IntoWasmAbi for RuntimeError
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for RuntimeError
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for RuntimeError
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = RuntimeError;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for RuntimeError
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for RuntimeError
fn none() -> Self::Abi
impl PartialEq for RuntimeError
fn eq(&self, other: &Self) -> bool
impl Promising for RuntimeError
type Resolution = RuntimeError;
impl RefFromWasmAbi for RuntimeError
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<RuntimeError>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl StructuralPartialEq for RuntimeError
impl UpcastFrom<RuntimeError> for RuntimeError
impl WasmDescribe for RuntimeError
fn describe()