pub struct LoadedModule {
pub base: u64,
pub size: u64,
pub path: Option<String>,
pub debug_id: Option<String>,
pub debug_file: Option<String>,
pub sections: Vec<Section>,
/* private fields */
}Expand description
A module loaded in this process.
Fields§
§base: u64Base address the module is mapped at.
size: u64Total mapped size.
path: Option<String>Full path of the module on disk, when the OS could report it.
Needed downstream to find the symbol file, which lives beside the
binary. None rather than a guess when the query fails: a wrong path
would load a different build’s symbols and produce confidently wrong
function names.
debug_id: Option<String>Build identity observed while this module inventory was taken.
This is read from the loaded image (or, on Linux, from the exact device/inode still backing the mapping), so later path replacement cannot change which symbols the capture expects.
debug_file: Option<String>Sanitized native symbol filename captured from the loaded image.
sections: Vec<Section>Sections parsed from the mapped headers.
Implementations§
Source§impl LoadedModule
impl LoadedModule
Trait Implementations§
Source§impl Clone for LoadedModule
impl Clone for LoadedModule
Source§fn clone(&self) -> LoadedModule
fn clone(&self) -> LoadedModule
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 moreAuto Trait Implementations§
impl Freeze for LoadedModule
impl RefUnwindSafe for LoadedModule
impl Send for LoadedModule
impl Sync for LoadedModule
impl Unpin for LoadedModule
impl UnsafeUnpin for LoadedModule
impl UnwindSafe for LoadedModule
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