pub enum CompactSection {
PreBuilt(Vec<u8>),
MappedBlocks {
old_blocks: Vec<u64>,
},
Zeros(u64),
}Expand description
A section in the virtual compacted image.
Variants§
PreBuilt(Vec<u8>)
Pre-built data served from memory (boot sectors, rebuilt metadata, etc.)
MappedBlocks
A contiguous run of mapped blocks from the source.
Each entry in old_blocks is the source block number. The blocks are
emitted sequentially in the virtual image — old_blocks[0] comes first,
then old_blocks[1], etc. The source byte offset for block b is:
source_partition_offset + source_data_start + b * block_size.
Fields
Zeros(u64)
Zero-filled region of the given byte length.
Auto Trait Implementations§
impl Freeze for CompactSection
impl RefUnwindSafe for CompactSection
impl Send for CompactSection
impl Sync for CompactSection
impl Unpin for CompactSection
impl UnsafeUnpin for CompactSection
impl UnwindSafe for CompactSection
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