pub struct MediaSpec {
pub iso: PathBuf,
pub out: PathBuf,
pub size_bytes: u64,
pub label: String,
pub iso_paths: Vec<String>,
pub staged: Vec<(String, Vec<u8>)>,
pub swm_parts: Vec<PathBuf>,
}Expand description
What to build: the retail Windows ISO in, a bootable raw image out.
Fields§
§iso: PathBufSource retail Windows ISO (UDF).
out: PathBufOutput raw image path (created/truncated).
size_bytes: u64Image size in bytes (10 GiB covers the ~8 GB tree + SWMs).
label: StringFAT32 volume label (WINSETUP).
iso_paths: Vec<String>ISO file paths to stream into the image (one file at a time,
never all in RAM). Pre-computed via list_iso_tree.
staged: Vec<(String, Vec<u8>)>Small files laid onto image (in-memory).
swm_parts: Vec<PathBuf>SWM split-WIM parts (file paths, streamed).
Auto Trait Implementations§
impl Forget for MediaSpec
impl Freeze for MediaSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, Vec<u8>)>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for MediaSpec
impl RefUnwindSafe for MediaSpec
impl Send for MediaSpecwhere
RawVecInner: Send,
impl Sync for MediaSpecwhere
RawVecInner: Sync,
impl Unpin for MediaSpec
impl UnsafeUnpin for MediaSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, Vec<u8>)>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for MediaSpecwhere
RawVecInner: UnwindSafe,
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