Struct LinkError

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

The WebAssembly.LinkError() constructor creates a new WebAssembly LinkError object, which indicates an error during module instantiation (besides traps from the start function).

MDN documentation

Implementations

impl LinkError

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

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

MDN documentation

impl LinkError

fn new(message: &str) -> LinkError

The WebAssembly.LinkError() constructor creates a new WebAssembly LinkError object, which indicates an error during module instantiation (besides traps from the start function).

MDN documentation

Trait Implementations

impl AsRef<Error> for LinkError

fn as_ref(&self) -> &Error

impl AsRef<JsValue> for LinkError

fn as_ref(&self) -> &JsValue

impl AsRef<LinkError> for LinkError

fn as_ref(&self) -> &LinkError

impl Clone for LinkError

fn clone(&self) -> Self

impl Debug for LinkError

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

impl Deref for LinkError

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

impl Eq for LinkError

impl ErasableGeneric for LinkError

type Repr = JsValue;

impl From<JsValue> for LinkError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for LinkError

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

impl IntoJsGeneric for LinkError where LinkError: JsGeneric,

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

impl IntoWasmAbi for LinkError

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

impl JsCast for LinkError

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

impl LongRefFromWasmAbi for LinkError

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

impl OptionFromWasmAbi for LinkError

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

impl OptionIntoWasmAbi for LinkError

fn none() -> Self::Abi

impl PartialEq for LinkError

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

impl Promising for LinkError

type Resolution = LinkError;

impl RefFromWasmAbi for LinkError

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

impl StructuralPartialEq for LinkError

impl UpcastFrom<LinkError> for LinkError

impl WasmDescribe for LinkError

fn describe()

Auto Trait Implementations

impl Freeze for LinkError

impl RefUnwindSafe for LinkError

impl Send for LinkError

impl Sync for LinkError

impl Unpin for LinkError

impl UnsafeUnpin for LinkError

impl UnwindSafe for LinkError

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for LinkError

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

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

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

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

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

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

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

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

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

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