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§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