[−][src]Struct lucet_runtime_internals::module::DlModule
A Lucet module backed by a dynamically-loaded shared object.
Methods
impl DlModule
[src]
pub fn load<P: AsRef<Path>>(so_path: P) -> Result<Arc<Self>, Error>
[src]
Create a module, loading code from a shared object on the filesystem.
pub fn load_and_verify<P: AsRef<Path>>(
so_path: P,
pk: PublicKey
) -> Result<Arc<Self>, Error>
[src]
so_path: P,
pk: PublicKey
) -> Result<Arc<Self>, Error>
Create a module, loading code from a shared object on the filesystem and verifying it using a public key if one has been supplied.
Trait Implementations
impl Module for DlModule
[src]
fn initial_globals_size(&self) -> usize
[src]
impl ModuleInternal for DlModule
[src]
fn heap_spec(&self) -> Option<&HeapSpec>
[src]
fn globals(&self) -> &[GlobalSpec]
[src]
fn get_sparse_page_data(&self, page: usize) -> Option<&[u8]>
[src]
fn sparse_page_data_len(&self) -> usize
[src]
fn table_elements(&self) -> Result<&[TableElement], Error>
[src]
fn get_export_func(&self, sym: &str) -> Result<FunctionHandle, Error>
[src]
fn get_func_from_idx(
&self,
table_id: u32,
func_id: u32
) -> Result<FunctionHandle, Error>
[src]
&self,
table_id: u32,
func_id: u32
) -> Result<FunctionHandle, Error>
fn get_start_func(&self) -> Result<Option<FunctionHandle>, Error>
[src]
fn function_manifest(&self) -> &[FunctionSpec]
[src]
fn addr_details(
&self,
addr: *const c_void
) -> Result<Option<AddrDetails>, Error>
[src]
&self,
addr: *const c_void
) -> Result<Option<AddrDetails>, Error>
fn get_signature(&self, fn_id: FunctionIndex) -> &Signature
[src]
fn function_handle_from_ptr(&self, ptr: FunctionPointer) -> FunctionHandle
[src]
fn lookup_trapcode(&self, rip: *const c_void) -> Option<TrapCode>
[src]
fn validate_runtime_spec(&self, limits: &Limits) -> Result<(), Error>
[src]
impl Send for DlModule
[src]
impl Sync for DlModule
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self