pub struct DlModule { /* private fields */ }
Expand description
A Lucet module backed by a dynamically-loaded shared object.
Implementations§
Trait Implementations§
Source§impl Module for DlModule
impl Module for DlModule
Source§fn initial_globals_size(&self) -> usize
fn initial_globals_size(&self) -> usize
Calculate the initial size in bytes of the module’s Wasm globals.
Source§impl ModuleInternal for DlModule
impl ModuleInternal for DlModule
Source§fn is_instruction_count_instrumented(&self) -> bool
fn is_instruction_count_instrumented(&self) -> bool
Determine whether this module has been instrumented with additional
instructions that monitor the number of wasm operations executed
during runtime.
fn heap_spec(&self) -> Option<&HeapSpec>
Source§fn globals(&self) -> &[GlobalSpec<'_>]
fn globals(&self) -> &[GlobalSpec<'_>]
Get the WebAssembly globals of the module. Read more
fn get_sparse_page_data(&self, page: usize) -> Option<&[u8]>
Source§fn sparse_page_data_len(&self) -> usize
fn sparse_page_data_len(&self) -> usize
Get the number of pages in the sparse page data.
Source§fn table_elements(&self) -> Result<&[TableElement], Error>
fn table_elements(&self) -> Result<&[TableElement], Error>
Get the table elements from the module.
fn get_export_func(&self, sym: &str) -> Result<FunctionHandle, Error>
fn get_func_from_idx( &self, table_id: u32, func_id: u32, ) -> Result<FunctionHandle, Error>
fn get_start_func(&self) -> Result<Option<FunctionHandle>, Error>
fn function_manifest(&self) -> &[FunctionSpec]
fn addr_details( &self, addr: *const c_void, ) -> Result<Option<AddrDetails>, Error>
fn get_signature(&self, fn_id: FunctionIndex) -> &Signature
fn function_handle_from_ptr(&self, ptr: FunctionPointer) -> FunctionHandle
impl Send for DlModule
impl Sync for DlModule
Auto Trait Implementations§
impl Freeze for DlModule
impl RefUnwindSafe for DlModule
impl Unpin for DlModule
impl UnwindSafe for DlModule
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