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
The requested guest cluster has a corresponding physical cluster specified in the translation table.
Fields
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 Freeze for Mapping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)