error

Function error 

Source
pub fn error<T>(text: &str) -> MessageBox<'_, T>
Expand description

Creates a new message box where its icon is set to Error.

Examples found in repository?
examples/options.rs (line 7)
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}