pub struct ProcessImage {
pub role: ImageRole,
pub path: PathBuf,
pub real_path: PathBuf,
pub install_name: String,
pub status: ImageLoadStatus,
pub image: Option<MachOImage>,
pub plan: ImagePlan,
pub memory: Option<GuestMemory>,
pub requested_kind: DylibKind,
pub exports: Vec<DefinedSymbol>,
}Expand description
One image in the process set (mapped or skipped).
Fields§
§role: ImageRoleMain vs dylib.
path: PathBufHost path attempted / opened.
real_path: PathBufCanonical (or best-effort absolute) path, computed once at insert.
Used for duplicate detection and bottle alias matching (libc++ →
libSystem) without re-running canonicalize / readlinkat on every
bind site (roadmap A4).
install_name: StringInstall name from the load command (or LC_ID_DYLIB when mapped).
status: ImageLoadStatusMap outcome.
image: Option<MachOImage>Present when status is ImageLoadStatus::Mapped.
plan: ImagePlanFull plan when mapped; ImagePlan::empty when skipped.
memory: Option<GuestMemory>Guest mapping when mapped.
requested_kind: DylibKindHow this edge was requested. Main uses DylibKind::Load as sentinel.
exports: Vec<DefinedSymbol>Defined external nlist symbols (PR2; empty in PR1).
Implementations§
Source§impl ProcessImage
impl ProcessImage
Sourcepub fn preferred_base(&self) -> u64
pub fn preferred_base(&self) -> u64
Preferred base from the plan (0 if empty).
Sourcepub fn region_infos(&self) -> Vec<MappedRegionInfo>
pub fn region_infos(&self) -> Vec<MappedRegionInfo>
Region infos for dry-load (empty when skipped).
Trait Implementations§
Auto Trait Implementations§
impl !Sync for ProcessImage
impl Freeze for ProcessImage
impl RefUnwindSafe for ProcessImage
impl Send for ProcessImage
impl Unpin for ProcessImage
impl UnsafeUnpin for ProcessImage
impl UnwindSafe for ProcessImage
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