]> git.proxmox.com Git - proxmox-backup.git/commit - src/server/worker_task.rs
server: change status of a task from a string to an enum
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 13 Aug 2020 08:29:13 +0000 (10:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 13 Aug 2020 09:35:19 +0000 (11:35 +0200)
commit4c116bafb8f6cf7fa577225ff1e71c7e84939814
tree4ce5bf1b89ebab9dd63a5d59e778bc4aad65235d
parentdf30017ff84a8859e950757ed638d0f7810f1e7f
server: change status of a task from a string to an enum

representing a state via an enum makes more sense in this case
we also implement FromStr and Display to make it easy to convet from/to
a string

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/admin/sync.rs
src/api2/node/tasks.rs
src/api2/types/mod.rs
src/server/worker_task.rs