Skip to main content

VmiDriver

Trait VmiDriver 

Source
pub trait VmiDriver: 'static {
    type Architecture: Architecture;

    // Required method
    fn info(&self) -> Result<VmiInfo, VmiError>;
}
Expand description

Base trait for all VMI driver sub-traits.

This trait provides the associated Architecture type and the fundamental info() method for querying VM metadata.

The 'static lifetime is required in order to use the driver with the VmiOs enumerators.

Required Associated Types§

Source

type Architecture: Architecture

The architecture supported by the driver.

Required Methods§

Source

fn info(&self) -> Result<VmiInfo, VmiError>

Returns information about the virtual machine.

Implementors§