Skip to main content

SnapshotCmd

Trait SnapshotCmd 

Source
pub trait SnapshotCmd {
    // Required methods
    fn list_snapshots(&self) -> VmResult<Vec<Snapshot>>;
    fn take_snapshot(&self, name: &str) -> VmResult<()>;
    fn revert_snapshot(&self, name: &str) -> VmResult<()>;
    fn delete_snapshot(&self, name: &str) -> VmResult<()>;
}
Expand description

A trait for managing snapshots of a VM.

Required Methods§

Source

fn list_snapshots(&self) -> VmResult<Vec<Snapshot>>

Returns snapshots of a VM.

Source

fn take_snapshot(&self, name: &str) -> VmResult<()>

Takes a snapshot of a VM.

Source

fn revert_snapshot(&self, name: &str) -> VmResult<()>

Reverts the current VM state to a snapshot of the VM.

Source

fn delete_snapshot(&self, name: &str) -> VmResult<()>

Deletes a snapshot of a VM.

Implementors§