pub struct MemoryRegion {
pub base_address: usize,
pub allocation_base: usize,
pub allocation_protect: u32,
pub region_size: usize,
pub state: MemoryState,
pub protect: u32,
pub memory_type: MemoryType,
}Expand description
memory region information
Fields§
§base_address: usize§allocation_base: usize§allocation_protect: u32§region_size: usize§state: MemoryState§protect: u32§memory_type: MemoryTypeImplementations§
Source§impl MemoryRegion
impl MemoryRegion
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
check if region is executable
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
check if region is readable
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
check if region is writable
Sourcepub fn is_committed(&self) -> bool
pub fn is_committed(&self) -> bool
check if region is committed (accessible)
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
check if region is private memory
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
check if region is reserved (not yet committed)
Sourcepub fn protection_string(&self) -> &'static str
pub fn protection_string(&self) -> &'static str
get protection string (e.g., “RWX”, “R–”, etc.)
Trait Implementations§
Source§impl Clone for MemoryRegion
impl Clone for MemoryRegion
Source§fn clone(&self) -> MemoryRegion
fn clone(&self) -> MemoryRegion
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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