pub struct RamRegion {
pub name: Option<String>,
pub range: Range<u64>,
pub cores: Vec<String>,
pub access: Option<MemoryAccess>,
}Expand description
Represents a region in RAM.
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
access: Option<MemoryAccess>Access permissions for the region.
Implementations§
Source§impl RamRegion
impl RamRegion
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 RamRegion
impl<'de> Deserialize<'de> for RamRegion
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 RamRegion
impl StructuralPartialEq for RamRegion
Auto Trait Implementations§
impl Freeze for RamRegion
impl RefUnwindSafe for RamRegion
impl Send for RamRegion
impl Sync for RamRegion
impl Unpin for RamRegion
impl UnwindSafe for RamRegion
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.