Skip to main content

VmoMapper

Trait VmoMapper 

Source
pub trait VmoMapper: UnsafeMmio + Sized {
    // Required method
    fn map(
        offset: usize,
        size: usize,
        vmo: Vmo,
    ) -> Result<MmioRegion<Self>, Status>;
}
Expand description

A type capable of mapping a zx::Vmo and returning an MmioRegion from it.

Required Methods§

Source

fn map(offset: usize, size: usize, vmo: Vmo) -> Result<MmioRegion<Self>, Status>

Map the specified memory range of the given Vmo in the root Vmar for this process and return an object that maintains the mapping for its lifetime.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§