tray-wrapper 0.4.1

A simple wrapper library to make it easy to run servers with a GUI tray icon
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// The state of the running server process
#[derive(Debug, Default, PartialEq, Eq)]
pub enum ServerStatus {
    //This is used when the wrapper starts up
    #[default]
    StartUp,

    //This is set just before await is called on your server
    Running,

    //This is set if the server stops but indicates it can be resumed, this may not be needed
    Stopped(String),

    //This is for when the server fails
    Error(String),
}