proxmox-backup/src/client
Stefan Reiter 6afb60abf5 asyncify pxar create_archive
...to take advantage of the aio::Encoder from the pxar create.

Rather straightforward conversion, but does require getting rid of
references in the Archiver struct, and thus has to be given the Mutex
for the catalog directly. The callback is boxed.

archive_dir_contents can call itself recursively, and thus needs to
return a boxed future.

Users are adjusted, namely PxarBackupStream is converted to use an
Abortable future instead of a thread so it supports async in its handler
function, and the pxar bin create_archive is converted to an async API
function. One test case is made to just use 'block_on'.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-17 09:24:20 +01:00
..
backup_reader.rs client/remote: add support to specify port number 2020-09-30 10:49:20 +02:00
backup_repo.rs client/remote: allow using ApiToken + secret 2020-10-29 15:14:27 +01:00
backup_specification.rs src/client/backup_specification.rs: split code into extra file 2020-05-30 10:54:38 +02:00
backup_writer.rs clippy: allow api functions with many arguments 2021-01-26 09:54:52 +01:00
http_client.rs derive/impl and use Default for some structs 2021-01-26 09:54:45 +01:00
merge_known_chunks.rs use pin-project to remove more unsafe blocks 2020-11-12 09:43:38 +01:00
pipe_to_stream.rs switch from failure to anyhow 2020-04-17 18:43:30 +02:00
pull.rs derive/impl and use Default for some structs 2021-01-26 09:54:45 +01:00
pxar_backup_stream.rs asyncify pxar create_archive 2021-02-17 09:24:20 +01:00
remote_chunk_reader.rs remote_chunk_reader.rs: use Arc for cache_hint to make clone faster 2020-09-22 11:39:31 +02:00
task_log.rs tape: proxmox-tape inventory: call API 2021-01-29 11:21:57 +01:00
vsock_client.rs client: add VsockClient to connect to virtio-vsock VMs 2021-02-17 08:15:43 +01:00