logo
pub struct Executable<E: UserDefinedError, I: InstructionMeter> { /* private fields */ }
Expand description

Elf loader/relocator

Implementations

Get the configuration settings

Get the .text section virtual address and bytes

Get the concatenated read-only sections (including the text section)

Get the entry point offset into the text section

Get a symbol’s instruction offset

Get the syscall registry

Get the JIT compiled program

JIT compile the executable

Report information on a symbol that failed to be resolved

Get syscalls and BPF functions (if debug symbols are not stripped)

Get syscalls symbols

Create from raw text section bytes (list of instructions)

Fully loads an ELF, including validation and relocation

Calculate the total memory size of the executable

Fix-ups relative calls

Validates the ELF

Static constructors for Executable

Creates a verified executable from an ELF file

Creates a verified executable from machine code

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.