pub struct ConventionalMemory { /* private fields */ }Expand description
Shared, zero-initialized conventional memory spanning physical addresses 00000h through FFFFFh. Clones share the same bytes without locking.
Individual bytes are atomic; bulk reads and writes are not atomic snapshots. All accesses validate their entire range before reading or writing any byte.
Implementations§
Source§impl ConventionalMemory
impl ConventionalMemory
Sourcepub fn read_byte(&self, address: u32) -> Result<u8>
pub fn read_byte(&self, address: u32) -> Result<u8>
Read one physical byte, or report an address outside conventional memory.
Sourcepub fn write_byte(&self, address: u32, value: u8) -> Result<()>
pub fn write_byte(&self, address: u32, value: u8) -> Result<()>
Write one physical byte, or report an address outside conventional memory.
Trait Implementations§
Source§impl Clone for ConventionalMemory
impl Clone for ConventionalMemory
Source§impl Debug for ConventionalMemory
impl Debug for ConventionalMemory
Auto Trait Implementations§
impl Forget for ConventionalMemory
impl Freeze for ConventionalMemory
impl RefUnwindSafe for ConventionalMemory
impl Send for ConventionalMemory
impl Sync for ConventionalMemory
impl Unpin for ConventionalMemory
impl UnsafeUnpin for ConventionalMemory
impl UnwindSafe for ConventionalMemory
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