archive server

This commit is contained in:
2026-06-12 18:27:55 +02:00
parent 6aa0ab473d
commit 97f3e4c139
11 changed files with 138 additions and 14 deletions

View File

@ -16,7 +16,8 @@ pub enum ServerStatus {
Stopping = 2,
Starting = 3,
Running = 4,
Unknown = 5,
Archiving = 5,
Unknown,
}
impl FromSql<SmallInt, Sqlite> for ServerStatus{
@ -42,6 +43,7 @@ impl fmt::Display for ServerStatus {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let str_status = match self {
ServerStatus::Archived => "archived",
ServerStatus::Archiving => "archiving",
ServerStatus::Stopped => "stopped",
ServerStatus::Stopping => "stopping",
ServerStatus::Starting => "starting",