Skip to main content

Vm

Enum Vm 

Source
pub enum Vm {
    AetherVm,
    Firecracker,
    CloudHypervisor,
    Gvisor,
    KataContainers,
    QemuKvm,
    Docker,
}
Expand description

VM / sandbox systems with curated agentic profiles.

Variants§

§

AetherVm

AetherVM (HyperMachine) — the agentic-first hypervisor this ecosystem ships: copy-on-write sandbox spawn, an MCP tool surface, and an agent runtime. Scored on the same axes as everything else.

§

Firecracker

§

CloudHypervisor

§

Gvisor

§

KataContainers

§

QemuKvm

§

Docker

Implementations§

Source§

impl Vm

Source

pub fn all() -> [Vm; 7]

All profiled VM/sandbox systems, in fixed (deterministic) order.

Source

pub fn name(self) -> &'static str

Canonical lowercase name.

Examples found in repository?
examples/vm_benchmark.rs (line 24)
12fn main() {
13    println!("agentic-eval — VM/sandbox systems for agentic AI use");
14    println!("axes: start-latency, density, isolation, snapshotting, agent-control\n");
15
16    // ── Ranked benchmark (best-first by composite agentic fitness) ───────────
17    println!(
18        "{:<17} {:>7}   {:>5} {:>7} {:>9} {:>8} {:>13}",
19        "system", "fitness", "start", "density", "isolation", "snapshot", "agent-control"
20    );
21    for p in rank_vms() {
22        println!(
23            "{:<17} {:>7.2}   {:>5.2} {:>7.2} {:>9.2} {:>8.2} {:>13.2}",
24            p.vm.name(),
25            p.fitness(),
26            p.start_latency,
27            p.density,
28            p.isolation,
29            p.snapshotting,
30            p.agent_control,
31        );
32    }
33
34    // ── Head-to-head: AetherVM vs the microVM reference (Firecracker) ────────
35    println!("\nhead-to-head (positive = AetherVM fits agentic use better):");
36    print!("{}", compare_vms(Vm::AetherVm, Vm::Firecracker));
37
38    // ── Evidence behind the subject's profile ────────────────────────────────
39    println!("\nwhy AetherVM scores where it does:");
40    for e in &profile(Vm::AetherVm).evidence {
41        println!("  - {e}");
42    }
43
44    println!(
45        "\nReading: AetherVM leads on the agent-native axes it was designed for\n\
46         (instant CoW branching + an MCP-native control plane), while microVMs\n\
47         (Firecracker/Cloud Hypervisor) lead on raw cold-start and battle-tested\n\
48         isolation. Shared-kernel containers (Docker) win speed/density but rank\n\
49         low on isolation for untrusted, agent-generated code."
50    );
51}
Source

pub fn from_name(name: &str) -> Option<Vm>

Parse a (case-insensitive) name; accepts common aliases (fc, chv, runsc, kvm, runc, …).

Trait Implementations§

Source§

impl Clone for Vm

Source§

fn clone(&self) -> Vm

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Vm

Source§

impl Debug for Vm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Vm

Source§

impl Hash for Vm

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Vm

Source§

fn eq(&self, other: &Vm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Vm

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Vm

Auto Trait Implementations§

§

impl Freeze for Vm

§

impl RefUnwindSafe for Vm

§

impl Send for Vm

§

impl Sync for Vm

§

impl Unpin for Vm

§

impl UnsafeUnpin for Vm

§

impl UnwindSafe for Vm

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.