Struct qcow::Snapshot[][src]

pub struct Snapshot {
    pub l1_table: Vec<L1Entry>,
    pub time: SnapshotTime,
    pub guest_runtime: u64,
    pub vm_state_size: u32,
    pub extra_data: SnapshotExtraData,
    pub unique_id: String,
    pub name: String,
}
Expand description

An entry in the snapshot table representing the system state at a moment in time

Fields

l1_table: Vec<L1Entry>

Table of L1 entries in the screenshot

time: SnapshotTime

Time at which the snapshot was taken since the Epoch

guest_runtime: u64

Time that the guest was running until the snapshot was taken in nanoseconds

vm_state_size: u32

Size of the VM state in bytes. 0 if no VM state is saved.

If there is VM state, it starts at the first cluster described by first L1 table entry that doesn’t describe a regular guest cluster (i.e. VM state is stored like guest disk content, except that it is stored at offsets that are larger than the virtual disk presented to the guest)

extra_data: SnapshotExtraData

Optional extra snapshot data that comes from format updates

unique_id: String

A unique identifier for the snapshot (example value: “1”)

name: String

Name of the snapshot

Trait Implementations

The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more

Read the type from the reader

Read the type from the reader while assuming no arguments have been passed Read more

Read the type from the reader using the specified arguments

The default arguments to be used when using the read shortcut method. Override this for any type that optionally requries arguments Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.