pub struct Region {
pub base: *mut u8,
pub size: RegionSize,
pub subregion_mask: u8,
pub enabled: bool,
pub no_exec: bool,
pub mem_attr: MemAttr,
}Expand description
Configuration for a region in the PMSAv7 MPU
Fields§
§base: *mut u8The base address of this region.
Must be aligned to the size of the region.
size: RegionSizeThe size of this region
subregion_mask: u8Sub-region bitmask
The region is divided into exactly eight equal sized subregions. Subregion 0 is the subregion at the least significant address.
A 1 bit means that sub-region is disabled.
Only applies to regions sized 256 bytes or larger.
enabled: boolIs this region enabled?
no_exec: boolNo-Execute in this region
mem_attr: MemAttrAttributes for this region
Trait Implementations§
impl Eq for Region
impl StructuralPartialEq for Region
impl Sync for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl !Send for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)