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.

MDN documentation

Implementations

impl RuntimeError

fn new(message: &str) -> RuntimeError

The WebAssembly.RuntimeError() constructor creates a new WebAssembly RuntimeError object — the type that is thrown whenever WebAssembly specifies a trap.

MDN documentation

impl RuntimeError

fn new_with_options(message: &str, options: &ErrorOptions) -> RuntimeError

Creates a new WebAssembly.RuntimeError with the given message and a typed ErrorOptions dictionary whose cause property indicates the original cause of the error.

MDN documentation

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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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()

Auto Trait Implementations

impl Freeze for RuntimeError

impl RefUnwindSafe for RuntimeError

impl Send for RuntimeError

impl Sync for RuntimeError

impl Unpin for RuntimeError

impl UnsafeUnpin for RuntimeError

impl UnwindSafe for RuntimeError

Blanket Implementations

impl<P, T> Receiver for RuntimeError where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for RuntimeError where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for RuntimeError where T: 'static + ?Sized,

impl<T> Borrow<T> for RuntimeError where T: ?Sized,

impl<T> BorrowMut<T> for RuntimeError where T: ?Sized,

impl<T> CloneToUninit for RuntimeError where T: Clone,

impl<T> From<T> for RuntimeError

impl<T> JsGeneric for RuntimeError where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for RuntimeError where T: IntoWasmAbi,

impl<T> ToOwned for RuntimeError where T: Clone,

impl<T> TryFromJsValue for RuntimeError where T: JsCast,

impl<T> VectorFromWasmAbi for RuntimeError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for RuntimeError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for RuntimeError where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for RuntimeError where U: From<T>,

impl<T, U> TryFrom<U> for RuntimeError where U: Into<T>,

impl<T, U> TryInto<U> for RuntimeError where U: TryFrom<T>,