pub struct Export<E: WasmEngine> {
pub name: String,
pub value: Extern<E>,
}Expand description
A descriptor for an exported WebAssembly value of an [Instance].
This type is primarily accessed from the [Instance::exports] method and describes
what names are exported from a Wasm [Instance] and the type of the item that is exported.
Fields§
§name: StringThe name by which the export is known.
value: Extern<E>The value of the exported item.
Trait Implementations§
Source§impl<E: WasmEngine> Debug for Export<E>
impl<E: WasmEngine> Debug for Export<E>
Auto Trait Implementations§
impl<E> Freeze for Export<E>where
<E as WasmEngine>::Global: Freeze,
<E as WasmEngine>::Table: Freeze,
<E as WasmEngine>::Memory: Freeze,
<E as WasmEngine>::Func: Freeze,
impl<E> RefUnwindSafe for Export<E>where
<E as WasmEngine>::Global: RefUnwindSafe,
<E as WasmEngine>::Table: RefUnwindSafe,
<E as WasmEngine>::Memory: RefUnwindSafe,
<E as WasmEngine>::Func: RefUnwindSafe,
impl<E> Send for Export<E>
impl<E> Sync for Export<E>
impl<E> Unpin for Export<E>where
<E as WasmEngine>::Global: Unpin,
<E as WasmEngine>::Table: Unpin,
<E as WasmEngine>::Memory: Unpin,
<E as WasmEngine>::Func: Unpin,
impl<E> UnwindSafe for Export<E>where
<E as WasmEngine>::Global: UnwindSafe,
<E as WasmEngine>::Table: UnwindSafe,
<E as WasmEngine>::Memory: UnwindSafe,
<E as WasmEngine>::Func: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more