pub trait MmioBackend {
// Required methods
fn read32(&mut self, offset: u64) -> Result<u32, BackendError>;
fn write32(&mut self, offset: u64, value: u32) -> Result<(), BackendError>;
fn barrier(&mut self);
}Expand description
Volatile 32-bit MMIO access to one resource.
Required Methods§
Sourcefn read32(&mut self, offset: u64) -> Result<u32, BackendError>
fn read32(&mut self, offset: u64) -> Result<u32, BackendError>
Performs one volatile 32-bit read at offset bytes from the start
of the logical resource.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".