shadowsocks-gtk-rs 0.4.1

A desktop GUI frontend for shadowsocks-rust client implemented with gtk-rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::ValueEnum;
use enum_iterator::Sequence;
use serde::{Deserialize, Serialize};

/// How to send the user a notification?
#[derive(Debug, strum::Display, Clone, Copy, PartialEq, Eq, Sequence, ValueEnum, Serialize, Deserialize)]
#[clap(rename_all = "kebab-case")]
pub enum NotifyMethod {
    /// Do nothing.
    Disable,
    /// Log in stdout.
    Log,
    /// Prompt using dialog.
    Prompt,
    /// Send system notification, appearing as a toast.
    Toast,
}