boxlite 0.9.1

Embeddable virtual machine runtime for secure, isolated code execution
1
2
3
4
5
6
7
8
9
10
11
12
//! VMM Factory pattern for dependency management and engine creation.

use crate::vmm::{Vmm, VmmConfig};
use boxlite_shared::errors::BoxliteResult;

/// Factory trait for creating VMM engines.
pub trait VmmFactory {
    type Engine: Vmm;

    /// Create engine instance with the provided options
    fn create(options: VmmConfig) -> BoxliteResult<Self::Engine>;
}