pub trait MemoryMapBlob {
type MemoryUnmapData;
// Required methods
fn mmap(
&self,
offs: u64,
len: usize,
) -> Result<(*mut c_void, Self::MemoryUnmapData)>;
fn munmap(&self, data: Self::MemoryUnmapData) -> Result<()>;
}Expand description
An Blob object that can be mapped into a memory.
Required Associated Types§
Required Methods§
fn mmap( &self, offs: u64, len: usize, ) -> Result<(*mut c_void, Self::MemoryUnmapData)>
fn munmap(&self, data: Self::MemoryUnmapData) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".