[−][src]Struct js_sys::WebAssembly::RuntimeError
The WebAssembly.RuntimeError()
constructor creates a new WebAssembly
RuntimeError
object — the type that is thrown whenever WebAssembly
specifies a trap.
Methods
impl RuntimeError
[src]
[−]
impl RuntimeError
pub fn new(message: &str) -> RuntimeError
[src]
[−]
pub 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.
Methods from Deref<Target = Error>
pub fn message(&self) -> JsString
[src]
[−]
pub fn message(&self) -> JsString
The message property is a human-readable description of the error.
pub fn set_message(&self, message: &str)
[src]
[−]
pub fn set_message(&self, message: &str)
pub fn name(&self) -> JsString
[src]
[−]
pub fn name(&self) -> JsString
The name property represents a name for the type of error. The initial value is "Error".
pub fn to_string(&self) -> JsString
[src]
[−]
pub fn to_string(&self) -> JsString
The toString() method returns a string representing the specified Error object
Trait Implementations
impl AsRef<JsValue> for RuntimeError
[src]
[+]
impl AsRef<JsValue> for RuntimeError
impl AsRef<Error> for RuntimeError
[src]
[+]
impl AsRef<Error> for RuntimeError
impl From<JsValue> for RuntimeError
[src]
[+]
impl From<JsValue> for RuntimeError
impl From<RuntimeError> for JsValue
[src]
[+]
impl From<RuntimeError> for JsValue
impl From<RuntimeError> for Error
[src]
[+]
impl From<RuntimeError> for Error
impl Clone for RuntimeError
[src]
[+]
impl Clone for RuntimeError
impl Debug for RuntimeError
[src]
[+]
impl Debug for RuntimeError
impl Deref for RuntimeError
[src]
[+]
impl Deref for RuntimeError
impl WasmDescribe for RuntimeError
[src]
[+]
impl WasmDescribe for RuntimeError
impl IntoWasmAbi for RuntimeError
[src]
[+]
impl IntoWasmAbi for RuntimeError
impl<'a> IntoWasmAbi for &'a RuntimeError
[src]
[+]
impl<'a> IntoWasmAbi for &'a RuntimeError
impl FromWasmAbi for RuntimeError
[src]
[+]
impl FromWasmAbi for RuntimeError
impl OptionFromWasmAbi for RuntimeError
[src]
[+]
impl OptionFromWasmAbi for RuntimeError
impl RefFromWasmAbi for RuntimeError
[src]
[+]
impl RefFromWasmAbi for RuntimeError
impl OptionIntoWasmAbi for RuntimeError
[src]
[+]
impl OptionIntoWasmAbi for RuntimeError
impl<'a> OptionIntoWasmAbi for &'a RuntimeError
[src]
[+]
impl<'a> OptionIntoWasmAbi for &'a RuntimeError
impl JsCast for RuntimeError
[src]
[+]
impl JsCast for RuntimeError
Auto Trait Implementations
impl !Send for RuntimeError
impl !Send for RuntimeError
impl !Sync for RuntimeError
impl !Sync for RuntimeError
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
[+]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
[+]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
[+]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[+]
impl<T, U> TryFrom for T where
T: From<U>,
impl<T> Borrow for T where
T: ?Sized,
[src]
[+]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[+]
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[+]
impl<T> BorrowMut for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[+]
impl<T> Any for T where
T: 'static + ?Sized,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
[+]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,