shadowsocks_gtk_rs/
notify_method.rs

1use clap::ValueEnum;
2use enum_iterator::Sequence;
3use serde::{Deserialize, Serialize};
4
5/// How to send the user a notification?
6#[derive(Debug, strum::Display, Clone, Copy, PartialEq, Eq, Sequence, ValueEnum, Serialize, Deserialize)]
7#[clap(rename_all = "kebab-case")]
8pub enum NotifyMethod {
9    /// Do nothing.
10    Disable,
11    /// Log in stdout.
12    Log,
13    /// Prompt using dialog.
14    Prompt,
15    /// Send system notification, appearing as a toast.
16    Toast,
17}