archive server
This commit is contained in:
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user