Struct MappedRegionInfo
pub struct MappedRegionInfo {
pub base_address: u64,
pub size: usize,
pub label: String,
pub protection: MemoryProtection,
}Expand description
Information about a mapped data region in the emulation address space.
This struct is returned by DataLoader methods after successfully mapping
data into memory. It contains metadata about the mapped region that can be
used to track and manage memory allocations.
§Fields
All fields are public to allow direct access to mapping information:
base_address- The starting virtual address of the mapped regionsize- The size in bytes of the mapped datalabel- A descriptive name for the region (useful for debugging)protection- The memory protection flags applied to the region
Fields§
§base_address: u64Base address where the region was mapped in virtual memory.
This is the starting address that can be used to read from or write to
the mapped data through the AddressSpace.
size: usizeSize of the mapped region in bytes.
This reflects the actual size of the data that was mapped, not including any padding or alignment that may have been applied by the address space.
label: StringLabel or name identifying this memory region.
This is a human-readable identifier useful for debugging and logging. Common labels include file names, section names, or descriptive tags like “stack”, “heap”, or “constants”.
protection: MemoryProtectionMemory protection flags for this region.
Defines what operations are permitted on this memory region.
See MemoryProtection for
available flags (READ, WRITE, EXECUTE).
Trait Implementations§
§impl Clone for MappedRegionInfo
impl Clone for MappedRegionInfo
§fn clone(&self) -> MappedRegionInfo
fn clone(&self) -> MappedRegionInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for MappedRegionInfo
impl RefUnwindSafe for MappedRegionInfo
impl Send for MappedRegionInfo
impl Sync for MappedRegionInfo
impl Unpin for MappedRegionInfo
impl UnsafeUnpin for MappedRegionInfo
impl UnwindSafe for MappedRegionInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.