pub enum Mapping {
Mapped {
physical_offset: u64,
length: u64,
},
Unmapped {
length: u64,
},
}
Expand description
Describes how bytes for a region of disk are stored in the qcow translation table.
Fields
The physical offset (in the QCOW file) that maps to the requested guest offset.
The mapping is valid for at least these many bytes. If length does not cover the range
requested then a new translation should be requested for the range immediately
following this one.
The requested guest cluster has a corresponding physical cluster specified in the
translation table.
The requested linear range is unmapped in the translation table for the next length
bytes.
Unmapped sectors read as zero.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
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.