[][src]Function libcoreinst::download::write_image

pub fn write_image<F>(
    source: &mut ImageSource,
    dest: &mut File,
    dest_path: &Path,
    image_copy: F,
    decompress: bool,
    byte_limit: Option<(u64, String)>,
    expected_sector_size: Option<NonZeroU32>
) -> Result<()> where
    F: FnOnce(&[u8], &mut dyn Read, &mut File, &Path) -> Result<()>, 

Copy the image to disk and verify its signature.