reuse_arguments/
reuse_arguments.rs1extern crate winrt_notification;
2use winrt_notification::{
3 Duration,
4 Sound,
5 Toast,
6};
7
8fn main() {
9 let duration = Duration::Short;
10 let sound = Some(Sound::SMS);
11
12 Toast::new(Toast::POWERSHELL_APP_ID)
13 .title("first toast")
14 .text1("line1")
15 .duration(duration)
16 .sound(sound)
17 .show()
18 .expect("notification failed");
20
21 Toast::new(Toast::POWERSHELL_APP_ID)
22 .title("another toast")
23 .text1("line1")
24 .duration(duration)
25 .sound(sound)
26 .show()
27 .expect("notification failed");
29}