Struct Exception

#[repr(transparent)]
pub struct Exception { /* private fields */ }

The WebAssembly.Exception() constructor creates a new Exception object

MDN documentation

Implementations

impl Exception

fn new_with_options(tag: &Tag, payload: &Array, options: &Object) -> Result<Exception, JsValue>

The WebAssembly.Exception() constructor creates a new Exception object

MDN documentation

impl Exception

fn is(&self, tag: &Tag) -> bool

The is() prototype method of the WebAssembly.Exception can be used to test if the Exception matches a given tag.

MDN documentation

impl Exception

fn new(tag: &Tag, payload: &Array) -> Result<Exception, JsValue>

The WebAssembly.Exception() constructor creates a new Exception object

MDN documentation

impl Exception

fn get_arg(&self, tag: &Tag, index: u32) -> Result<JsValue, JsValue>

The getArg() prototype method of the WebAssembly.Exception can be used to get the value of a specified item in the exception's data arguments

MDN documentation

Trait Implementations

impl AsRef<Exception> for Exception

fn as_ref(&self) -> &Exception

impl AsRef<JsValue> for Exception

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for Exception

fn as_ref(&self) -> &Object

impl Clone for Exception

fn clone(&self) -> Self

impl Debug for Exception

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Deref for Exception

type Target = Object;
fn deref(&self) -> &Object

impl Eq for Exception

impl ErasableGeneric for Exception

type Repr = JsValue;

impl From<JsValue> for Exception

fn from(obj: JsValue) -> Self

impl FromWasmAbi for Exception

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for Exception where Exception: JsGeneric,

type JsCanon = Exception;
fn to_js(self) -> Exception

impl IntoWasmAbi for Exception

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for Exception

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for Exception

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = Exception;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for Exception

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for Exception

fn none() -> Self::Abi

impl PartialEq for Exception

fn eq(&self, other: &Self) -> bool

impl Promising for Exception

type Resolution = Exception;

impl RefFromWasmAbi for Exception

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<Exception>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for Exception

impl UpcastFrom<Exception> for Exception

impl WasmDescribe for Exception

fn describe()

Auto Trait Implementations

impl Freeze for Exception

impl RefUnwindSafe for Exception

impl Send for Exception

impl Sync for Exception

impl Unpin for Exception

impl UnsafeUnpin for Exception

impl UnwindSafe for Exception

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for Exception

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

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

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

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

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

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

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

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

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

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