Trait MemoryMapBlob

Source
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§

Source

fn mmap( &self, offs: u64, len: usize, ) -> Result<(*mut c_void, Self::MemoryUnmapData)>

Source

fn munmap(&self, data: Self::MemoryUnmapData) -> Result<()>

Implementations on Foreign Types§

Source§

impl<'t, T> MemoryMapBlob for &'t T
where T: MemoryMapBlob + ?Sized + 't,

Implementors§