Struct Exception
#[repr(transparent)]
pub struct Exception { /* private fields */ }
The WebAssembly.Exception() constructor creates a new Exception object
Implementations
impl Exception
fn new_with_options(tag: &Tag, payload: &Array, options: &Object) -> Result<Exception, JsValue>The
WebAssembly.Exception()constructor creates a newExceptionobject
impl Exception
fn is(&self, tag: &Tag) -> boolThe
is()prototype method of theWebAssembly.Exceptioncan be used to test if the Exception matches a given tag.
impl Exception
fn new(tag: &Tag, payload: &Array) -> Result<Exception, JsValue>The
WebAssembly.Exception()constructor creates a newExceptionobject
impl Exception
fn get_arg(&self, tag: &Tag, index: u32) -> Result<JsValue, JsValue>The
getArg()prototype method of theWebAssembly.Exceptioncan be used to get the value of a specified item in the exception's data arguments
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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()