Skip to main content

Mapper

Trait Mapper 

Source
pub trait Mapper {
    // Required method
    fn map(
        &self,
        vmar_offset: usize,
        vmo: &Vmo,
        vmo_offset: u64,
        length: usize,
        flags: VmarFlags,
    ) -> Result<usize, Status>;
}
Expand description

A trait so that callers of map_elf_segments can hook the map operation.

Required Methods§

Source

fn map( &self, vmar_offset: usize, vmo: &Vmo, vmo_offset: u64, length: usize, flags: VmarFlags, ) -> Result<usize, Status>

Map memory from the given VMO at the specified location.

See zx::Vmar::map for more details.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Mapper for Vmar

Source§

fn map( &self, vmar_offset: usize, vmo: &Vmo, vmo_offset: u64, length: usize, flags: VmarFlags, ) -> Result<usize, Status>

Implementors§