1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use win_msgbox::{
    w,
    CancelTryAgainContinue::{self, *},
    Result,
};

fn main() -> Result<()> {
    let response = win_msgbox::error::<CancelTryAgainContinue>(w!("Couldn't download resource"))
        .title(w!("Download Error"))
        .show()?;

    match response {
        Cancel => println!("Cancelling downlaod..."),
        TryAgain => println!("Attempting redownload..."),
        Continue => println!("Skipping resource"),
    }

    Ok(())
}