pub struct NvmRegion {
pub name: Option<String>,
pub range: Range<u64>,
pub cores: Vec<String>,
pub is_alias: bool,
pub access: Option<MemoryAccess>,
}Expand description
Represents a region in non-volatile memory (e.g. flash or EEPROM).
Fields§
§name: Option<String>A name to describe the region
range: Range<u64>Address range of the region
cores: Vec<String>List of cores that can access this region
is_alias: boolTrue if the memory region is an alias of a different memory region.
access: Option<MemoryAccess>Access permissions for the region.
Implementations§
Source§impl NvmRegion
impl NvmRegion
Sourcepub fn accessible_by(&self, core_name: &str) -> bool
pub fn accessible_by(&self, core_name: &str) -> bool
Returns whether the region is accessible by the given core.
Sourcepub fn access(&self) -> MemoryAccess
pub fn access(&self) -> MemoryAccess
Returns the access permissions for the region.
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
Returns whether the region is readable.
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Returns whether the region is writable.
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
Returns whether the region is executable.
Sourcepub fn is_boot_memory(&self) -> bool
pub fn is_boot_memory(&self) -> bool
Returns whether the region is boot memory.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NvmRegion
impl<'de> Deserialize<'de> for NvmRegion
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
impl Eq for NvmRegion
impl StructuralPartialEq for NvmRegion
Auto Trait Implementations§
impl Freeze for NvmRegion
impl RefUnwindSafe for NvmRegion
impl Send for NvmRegion
impl Sync for NvmRegion
impl Unpin for NvmRegion
impl UnwindSafe for NvmRegion
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.