usesuper::VmiOs;usecrate::{VmiDriver, VmiError, VmiVa};/// A trait for memory mapped regions.
////// This trait provides an abstraction over memory mapped regions.
pubtraitVmiOsMapped<'a, Driver>: VmiVa + 'a
where
Driver: VmiDriver,
{/// The VMI OS type.
typeOs: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`.
fnpath(&self)->Result<Option<String>, VmiError>;}