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§
Sourcefn list_snapshots(&self) -> VmResult<Vec<Snapshot>>
fn list_snapshots(&self) -> VmResult<Vec<Snapshot>>
Returns snapshots of a VM.
Sourcefn take_snapshot(&self, name: &str) -> VmResult<()>
fn take_snapshot(&self, name: &str) -> VmResult<()>
Takes a snapshot of a VM.
Sourcefn revert_snapshot(&self, name: &str) -> VmResult<()>
fn revert_snapshot(&self, name: &str) -> VmResult<()>
Reverts the current VM state to a snapshot of the VM.
Sourcefn delete_snapshot(&self, name: &str) -> VmResult<()>
fn delete_snapshot(&self, name: &str) -> VmResult<()>
Deletes a snapshot of a VM.