options/options.rs
1use win_msgbox::{
2 CancelTryAgainContinue::{self, *},
3 Result,
4};
5
6fn main() -> Result<()> {
7 let response = win_msgbox::error::<CancelTryAgainContinue>("Couldn't download resource")
8 .title("Download Error")
9 .show()?;
10
11 match response {
12 Cancel => println!("Cancelling downlaod..."),
13 TryAgain => println!("Attempting redownload..."),
14 Continue => println!("Skipping resource"),
15 }
16
17 Ok(())
18}