Skip to main content

flash_progress

Function flash_progress 

Source
pub fn flash_progress(
    image_path: PathBuf,
    device_path: PathBuf,
    cancel_token: Arc<AtomicBool>,
    run_id: u64,
) -> Subscription<FlashProgress>
Expand description

Create a subscription that streams FlashProgress events while the flash operation runs.

run_id must be incremented on every new flash attempt so that flashing the same image to the same device twice always produces a distinct subscription ID and Iced creates a fresh stream.