pub enum Export {
LiftedFunction {
ty: TypeFuncIndex,
func: CoreDef,
options: CanonicalOptions,
},
ModuleStatic {
ty: TypeModuleIndex,
index: StaticModuleIndex,
},
ModuleImport {
ty: TypeModuleIndex,
import: RuntimeImportIndex,
},
Instance {
ty: TypeComponentInstanceIndex,
exports: NameMap<String, ExportIndex>,
},
Type(TypeDef),
}
Expand description
Possible exports from a component.
Variants§
LiftedFunction
A lifted function being exported which is an adaptation of a core wasm function.
Fields
§
ty: TypeFuncIndex
The component function type of the function being created.
§
options: CanonicalOptions
Any options, if present, associated with this lifting.
ModuleStatic
A module defined within this component is exported.
Fields
§
ty: TypeModuleIndex
The type of this module
§
index: StaticModuleIndex
Which module this is referring to.
ModuleImport
A module imported into this component is exported.
Instance
A nested instance is being exported which has recursively defined
Export
items.
Fields
§
ty: TypeComponentInstanceIndex
Instance type index, if such is assigned
§
exports: NameMap<String, ExportIndex>
Instance export map
Type(TypeDef)
An exported type from a component or instance, currently only informational.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Export
impl<'de> Deserialize<'de> for Export
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl Send for Export
impl Sync for Export
impl Unpin for Export
impl UnwindSafe for Export
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)