pub struct Region {
pub base_addr: usize,
pub size: Size,
pub subregions: Subregions,
pub executable: bool,
pub permissions: AccessPermission,
pub attributes: MemoryAttributes,
}
Expand description
Memory region properties.
Fields§
§base_addr: usize
Starting address of the region (lowest address).
This must be aligned to the region’s size
.
size: Size
Size of the region.
subregions: Subregions
The subregions to enable or disable.
executable: bool
Whether to allow instruction fetches from this region.
If this is false
, the region will be marked as NX (Never eXecute).
This affects both privileged and unprivileged code, regardless of
other MPU settings.
permissions: AccessPermission
Data access permissions for the region.
attributes: MemoryAttributes
Memory type and cache policy attributes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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