pub struct Module {
pub name: String,
pub base: NativePointer,
pub size: usize,
pub path: String,
/* private fields */
}Fields§
§name: StringCanonical module name.
base: NativePointerBase address of module.
size: usizeSize of module in bytes.
path: StringFull filesystem path of module.
Implementations§
Source§impl Module
impl Module
Sourcepub fn enumerate_exports(&self) -> Vec<ExportDetails>
pub fn enumerate_exports(&self) -> Vec<ExportDetails>
Get all exports of the module.
This is the equivalent to calling enumerateExports() in the
JavaScript API.
Sourcepub fn enumerate_imports(&self) -> Vec<ImportDetails>
pub fn enumerate_imports(&self) -> Vec<ImportDetails>
Get all imports of the module.
This is the equivalent to calling enumerateImports() in the
JavaScript API.
Sourcepub fn enumerate_symbols(&self) -> Vec<SymbolDetails>
pub fn enumerate_symbols(&self) -> Vec<SymbolDetails>
Get all symbols of the module.
This is the equivalent to calling enumerateSymbols() in the
JavaScript API.
Sourcepub fn enumerate_ranges(&self, protection: &str) -> Vec<RangeDetails>
pub fn enumerate_ranges(&self, protection: &str) -> Vec<RangeDetails>
Get all memory ranges satisfying protection.
protection is a string with the form “rwx” where “rw-” means “must be
at least readable and writable.”
This is the equivalent to calling enumerateRanges() in the
JavaScript API.
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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