pub enum LinkageType {
OriginalLayout,
DynamicLinking {
table_offset: u32,
table_num_entrypoints: u32,
},
}Variants§
OriginalLayout
Keep original layout of data segment and indirect_function_table. This will emit “gaps” in “element” and in “data” sections.
This layout is non-portable and doesn’t support dynamic module re-building/re-loading. It is useful in production, to split size of generated WASM binaries.
DynamicLinking
Replace constant offsets with GOT+offset (for memory and table access). Allocate memory and table dynamically on module loading.
This allow dynamic reloading of modules. Modules entrypoints are still located in fixed position in table.
Trait Implementations§
Source§impl Clone for LinkageType
impl Clone for LinkageType
Source§fn clone(&self) -> LinkageType
fn clone(&self) -> LinkageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LinkageType
Source§impl Debug for LinkageType
impl Debug for LinkageType
impl Eq for LinkageType
Source§impl PartialEq for LinkageType
impl PartialEq for LinkageType
impl StructuralPartialEq for LinkageType
Auto Trait Implementations§
impl Freeze for LinkageType
impl RefUnwindSafe for LinkageType
impl Send for LinkageType
impl Sync for LinkageType
impl Unpin for LinkageType
impl UnsafeUnpin for LinkageType
impl UnwindSafe for LinkageType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.