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.
Variants§
Mapped
Fields
The requested guest cluster has a corresponding physical cluster specified in the translation table.
Unmapped
The requested linear range is unmapped in the translation table for the next length
bytes.
Unmapped sectors read as zero.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more