]> git.proxmox.com Git - proxmox-backup.git/commit
refactor send_command
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 May 2021 13:53:59 +0000 (15:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 May 2021 14:28:08 +0000 (16:28 +0200)
commit45b8a0327f21f048bb4384bafc292954358b5651
tree446fce14ceba97cf957058ce1079feb42bd61df6
parenta723c0871573d07345def3b44b8839cc668f1141
refactor send_command

- refactor the combinators,
- make it take a `&T: Serialize` instead of a Value, and
  allow sending the raw string via `send_raw_command`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox-backup-proxy.rs
src/server/command_socket.rs
src/server/worker_task.rs