systemd-manager-tui 1.3.0

TUI for managing systemd services
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum ConnectionType {
    Session,
    System,
}

impl fmt::Display for ConnectionType {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        formatter.write_str(match self {
            Self::Session => "user",
            Self::System => "system",
        })
    }
}