pub struct PlannedMapping {
pub name: String,
pub vmaddr: u64,
pub vmsize: u64,
pub fileoff: u64,
pub filesize: u64,
pub guest_aligned_addr: u64,
pub guest_aligned_end: u64,
pub initprot: u32,
pub maxprot: u32,
pub vmaddr_guest_aligned: bool,
pub vmsize_guest_aligned: bool,
pub svc_scan_ranges: Vec<(u64, u64)>,
}Expand description
One planned mapping region (segment-level).
Fields§
§name: StringSegment name.
vmaddr: u64Preferred VA (slide 0).
vmsize: u64Virtual size as declared.
fileoff: u64File offset of the first mapped byte.
filesize: u64Bytes to load from the file.
guest_aligned_addr: u64vmaddr rounded down to guest page.
guest_aligned_end: u64End address rounded up to guest page.
initprot: u32Initial protection bits.
maxprot: u32Maximum protection bits.
vmaddr_guest_aligned: boolTrue when vmaddr is guest-page aligned.
vmsize_guest_aligned: boolTrue when vmsize is a guest-page multiple (or zero).
svc_scan_ranges: Vec<(u64, u64)>Residual svc scan ranges relative to this segment’s file content
(offset from segment fileoff, len). Instruction sections only
(S_ATTR_PURE_INSTRUCTIONS / S_ATTR_SOME_INSTRUCTIONS). Empty →
trap backend scans the whole segment filesize.
Trait Implementations§
Source§impl Clone for PlannedMapping
impl Clone for PlannedMapping
Source§fn clone(&self) -> PlannedMapping
fn clone(&self) -> PlannedMapping
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 moreSource§impl Debug for PlannedMapping
impl Debug for PlannedMapping
impl Eq for PlannedMapping
Source§impl PartialEq for PlannedMapping
impl PartialEq for PlannedMapping
impl StructuralPartialEq for PlannedMapping
Auto Trait Implementations§
impl Freeze for PlannedMapping
impl RefUnwindSafe for PlannedMapping
impl Send for PlannedMapping
impl Sync for PlannedMapping
impl Unpin for PlannedMapping
impl UnsafeUnpin for PlannedMapping
impl UnwindSafe for PlannedMapping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.