pub enum MemoryAttributes {
StronglyOrdered,
Device {
shareable: bool,
},
Normal {
shareable: bool,
cache_policy: CachePolicy,
},
}
Expand description
Describes memory type, cache policy, and shareability.
Variants§
StronglyOrdered
Shareable, non-cached, strongly-ordered memory region.
Device
Non-cached device peripheral region.
Fields
Whether the region is accessible by more than one bus master (eg. a DMA engine or a second MCU core).
Normal
Normal memory region (ie. “actual” memory, such as Flash or SRAM).
Fields
Whether the region is accessible by more than one bus master (eg. a DMA engine or a second MCU core).
§
cache_policy: CachePolicy
How this region should be cached (?).
Trait Implementations§
Source§impl Clone for MemoryAttributes
impl Clone for MemoryAttributes
Source§fn clone(&self) -> MemoryAttributes
fn clone(&self) -> MemoryAttributes
Returns a copy of the value. Read more
1.0.0 · 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 MemoryAttributes
impl Debug for MemoryAttributes
Source§impl PartialEq for MemoryAttributes
impl PartialEq for MemoryAttributes
impl Copy for MemoryAttributes
impl Eq for MemoryAttributes
impl StructuralPartialEq for MemoryAttributes
Auto Trait Implementations§
impl Freeze for MemoryAttributes
impl RefUnwindSafe for MemoryAttributes
impl Send for MemoryAttributes
impl Sync for MemoryAttributes
impl Unpin for MemoryAttributes
impl UnwindSafe for MemoryAttributes
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