pub enum MemProtection {
Mpu {
regions: u8,
},
Mmu,
Pmp {
entries: u8,
},
SoftwareOnly,
}Expand description
Memory protection model
Variants§
Mpu
ARM MPU (Cortex-M, Cortex-R)
Mmu
ARM MMU (Cortex-A)
Pmp
RISC-V Physical Memory Protection
SoftwareOnly
No hardware protection
Trait Implementations§
Source§impl Clone for MemProtection
impl Clone for MemProtection
Source§fn clone(&self) -> MemProtection
fn clone(&self) -> MemProtection
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 MemProtection
impl Debug for MemProtection
Source§impl<'de> Deserialize<'de> for MemProtection
impl<'de> Deserialize<'de> for MemProtection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemProtection
impl PartialEq for MemProtection
Source§fn eq(&self, other: &MemProtection) -> bool
fn eq(&self, other: &MemProtection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemProtection
impl Serialize for MemProtection
impl Eq for MemProtection
impl StructuralPartialEq for MemProtection
Auto Trait Implementations§
impl Freeze for MemProtection
impl RefUnwindSafe for MemProtection
impl Send for MemProtection
impl Sync for MemProtection
impl Unpin for MemProtection
impl UnsafeUnpin for MemProtection
impl UnwindSafe for MemProtection
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.