Struct js_sys::WebAssembly::RuntimeError [−][src]
#[repr(transparent)]pub struct RuntimeError { /* fields omitted */ }
The WebAssembly.RuntimeError() constructor creates a new WebAssembly
RuntimeError object — the type that is thrown whenever WebAssembly
specifies a trap.
Implementations
impl RuntimeError[src]
impl RuntimeError[src]pub fn new(message: &str) -> RuntimeError[src]
The WebAssembly.RuntimeError() constructor creates a new WebAssembly
RuntimeError object — the type that is thrown whenever WebAssembly
specifies a trap.
Methods from Deref<Target = Error>
pub fn message(&self) -> JsString[src]
The message property is a human-readable description of the error.
pub fn set_message(&self, message: &str)[src]
pub fn name(&self) -> JsString[src]
The name property represents a name for the type of error. The initial value is “Error”.
pub fn to_string(&self) -> JsString[src]
The toString() method returns a string representing the specified Error object
Trait Implementations
impl AsRef<RuntimeError> for RuntimeError[src]
impl AsRef<RuntimeError> for RuntimeError[src]fn as_ref(&self) -> &RuntimeError[src]
impl Clone for RuntimeError[src]
impl Clone for RuntimeError[src]fn clone(&self) -> RuntimeError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Deref for RuntimeError[src]
impl Deref for RuntimeError[src]impl From<JsValue> for RuntimeError[src]
impl From<JsValue> for RuntimeError[src]fn from(obj: JsValue) -> RuntimeError[src]
impl From<RuntimeError> for JsValue[src]
impl From<RuntimeError> for JsValue[src]fn from(obj: RuntimeError) -> JsValue[src]
impl From<RuntimeError> for Error[src]
impl From<RuntimeError> for Error[src]fn from(obj: RuntimeError) -> Error[src]
impl FromWasmAbi for RuntimeError[src]
impl FromWasmAbi for RuntimeError[src]impl IntoWasmAbi for RuntimeError[src]
impl IntoWasmAbi for RuntimeError[src]impl<'a> IntoWasmAbi for &'a RuntimeError[src]
impl<'a> IntoWasmAbi for &'a RuntimeError[src]impl JsCast for RuntimeError[src]
impl JsCast for RuntimeError[src]fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
pub fn has_type<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
pub fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
pub fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
pub fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
pub fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
pub fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
pub fn is_type_of(val: &JsValue) -> bool[src]
impl OptionFromWasmAbi for RuntimeError[src]
impl OptionFromWasmAbi for RuntimeError[src]impl OptionIntoWasmAbi for RuntimeError[src]
impl OptionIntoWasmAbi for RuntimeError[src]impl<'a> OptionIntoWasmAbi for &'a RuntimeError[src]
impl<'a> OptionIntoWasmAbi for &'a RuntimeError[src]impl PartialEq<RuntimeError> for RuntimeError[src]
impl PartialEq<RuntimeError> for RuntimeError[src]fn eq(&self, other: &RuntimeError) -> bool[src]
fn ne(&self, other: &RuntimeError) -> bool[src]
impl RefFromWasmAbi for RuntimeError[src]
impl RefFromWasmAbi for RuntimeError[src]type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<RuntimeError>
The type that holds the reference to Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl WasmDescribe for RuntimeError[src]
impl WasmDescribe for RuntimeError[src]impl Eq for RuntimeError[src]
impl StructuralEq for RuntimeError[src]
impl StructuralPartialEq for RuntimeError[src]
Auto Trait Implementations
impl RefUnwindSafe for RuntimeError
impl !Send for RuntimeError
impl !Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi