pub struct ArtifactBuildFromArchive { /* private fields */ }
Expand description
A compiled wasm module that was loaded from a serialized archive.
Implementations§
source§impl ArtifactBuildFromArchive
impl ArtifactBuildFromArchive
sourcepub fn owned_buffer(&self) -> &OwnedBuffer
pub fn owned_buffer(&self) -> &OwnedBuffer
Gets the owned buffer
sourcepub fn get_function_bodies_ref(
&self,
) -> &ArchivedPrimaryMap<LocalFunctionIndex, FunctionBody>
pub fn get_function_bodies_ref( &self, ) -> &ArchivedPrimaryMap<LocalFunctionIndex, FunctionBody>
Get Functions Bodies ref
sourcepub fn get_function_call_trampolines_ref(
&self,
) -> &ArchivedPrimaryMap<SignatureIndex, FunctionBody>
pub fn get_function_call_trampolines_ref( &self, ) -> &ArchivedPrimaryMap<SignatureIndex, FunctionBody>
Get Functions Call Trampolines ref
sourcepub fn get_dynamic_function_trampolines_ref(
&self,
) -> &ArchivedPrimaryMap<FunctionIndex, FunctionBody>
pub fn get_dynamic_function_trampolines_ref( &self, ) -> &ArchivedPrimaryMap<FunctionIndex, FunctionBody>
Get Dynamic Functions Call Trampolines ref
sourcepub fn get_custom_sections_ref(
&self,
) -> &ArchivedPrimaryMap<SectionIndex, CustomSection>
pub fn get_custom_sections_ref( &self, ) -> &ArchivedPrimaryMap<SectionIndex, CustomSection>
Get Custom Sections ref
sourcepub fn get_function_relocations(
&self,
) -> &ArchivedPrimaryMap<LocalFunctionIndex, Vec<Relocation>>
pub fn get_function_relocations( &self, ) -> &ArchivedPrimaryMap<LocalFunctionIndex, Vec<Relocation>>
Get Function Relocations
sourcepub fn get_custom_section_relocations_ref(
&self,
) -> &ArchivedPrimaryMap<SectionIndex, Vec<Relocation>>
pub fn get_custom_section_relocations_ref( &self, ) -> &ArchivedPrimaryMap<SectionIndex, Vec<Relocation>>
Get Function Relocations ref
sourcepub fn get_libcall_trampolines(&self) -> SectionIndex
pub fn get_libcall_trampolines(&self) -> SectionIndex
Get LibCall Trampoline Section Index
sourcepub fn get_libcall_trampoline_len(&self) -> usize
pub fn get_libcall_trampoline_len(&self) -> usize
Get LibCall Trampoline Length
sourcepub fn get_debug_ref(&self) -> Option<Dwarf>
pub fn get_debug_ref(&self) -> Option<Dwarf>
Get Debug optional Dwarf ref
sourcepub fn get_frame_info_ref(
&self,
) -> &ArchivedPrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
pub fn get_frame_info_ref( &self, ) -> &ArchivedPrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>
Get Function Relocations ref
sourcepub fn deserialize_frame_info_ref(
&self,
) -> Result<PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>, DeserializeError>
pub fn deserialize_frame_info_ref( &self, ) -> Result<PrimaryMap<LocalFunctionIndex, CompiledFunctionFrameInfo>, DeserializeError>
Get Function Relocations ref
Trait Implementations§
source§impl<'a> ArtifactCreate<'a> for ArtifactBuildFromArchive
impl<'a> ArtifactCreate<'a> for ArtifactBuildFromArchive
source§type OwnedDataInitializer = &'a ArchivedOwnedDataInitializer
type OwnedDataInitializer = &'a ArchivedOwnedDataInitializer
Type of
OwnedDataInitializer
returned by the data_initializers
methodsource§type OwnedDataInitializerIterator = Iter<'a, ArchivedOwnedDataInitializer>
type OwnedDataInitializerIterator = Iter<'a, ArchivedOwnedDataInitializer>
Type of iterator returned by the
data_initializers
methodsource§fn create_module_info(&self) -> Arc<ModuleInfo>
fn create_module_info(&self) -> Arc<ModuleInfo>
Create a
ModuleInfo
for instantiationsource§fn set_module_info_name(&mut self, name: String) -> bool
fn set_module_info_name(&mut self, name: String) -> bool
Sets the
ModuleInfo
namesource§fn module_info(&self) -> &ModuleInfo
fn module_info(&self) -> &ModuleInfo
Returns the
ModuleInfo
for instantiationsource§fn cpu_features(&self) -> EnumSet<CpuFeature>
fn cpu_features(&self) -> EnumSet<CpuFeature>
Returns the CPU features for this Artifact
source§fn data_initializers(&'a self) -> Self::OwnedDataInitializerIterator
fn data_initializers(&'a self) -> Self::OwnedDataInitializerIterator
Returns data initializers to pass to
VMInstance::initialize
source§fn memory_styles(&self) -> &PrimaryMap<MemoryIndex, MemoryStyle>
fn memory_styles(&self) -> &PrimaryMap<MemoryIndex, MemoryStyle>
Returns the memory styles associated with this
Artifact
.source§fn table_styles(&self) -> &PrimaryMap<TableIndex, TableStyle>
fn table_styles(&self) -> &PrimaryMap<TableIndex, TableStyle>
Returns the table plans associated with this
Artifact
.source§impl Clone for ArtifactBuildFromArchive
impl Clone for ArtifactBuildFromArchive
source§fn clone(&self) -> ArtifactBuildFromArchive
fn clone(&self) -> ArtifactBuildFromArchive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ArtifactBuildFromArchive
impl RefUnwindSafe for ArtifactBuildFromArchive
impl Send for ArtifactBuildFromArchive
impl Sync for ArtifactBuildFromArchive
impl Unpin for ArtifactBuildFromArchive
impl UnwindSafe for ArtifactBuildFromArchive
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
)source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref