vmi-core 0.7.0

Core VMI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::VmiOs;
use crate::{VmiDriver, VmiError, VmiVa};

/// A trait for memory mapped regions.
///
/// This trait provides an abstraction over memory mapped regions.
pub trait VmiOsMapped<'a, Driver>: VmiVa + 'a
where
    Driver: VmiDriver,
{
    /// The VMI OS type.
    type Os: VmiOs<Driver = Driver, Mapped<'a> = Self>;

    /// Returns the path to the file backing the region.
    ///
    /// If the mapping is not backed by a file, this method will return `None`.
    fn path(&self) -> Result<Option<String>, VmiError>;
}