Expand description
Tauri commands for transfer operations.
§Commands
transfer_download— register a download, spawn the stream task, return therequest_idimmediately so the frontend can subscribe totransfer:progressandtransfer:state.transfer_upload— register an upload, spawn the upload task, return therequest_idimmediately.transfer_list— list transfers filtered by state.transfer_cancel— cancel an in-flight transfer.transfer_retry— re-enqueue a failed/canceled transfer from start.transfer_upload_many— bulk-enqueue multiple uploads.transfer_download_many— bulk-enqueue multiple downloads.
§OCP contract
Upload/download are independent command paths. transfer_list and
transfer_cancel compose over TransferQueueHandle without touching either.
Adding a new transfer kind (Move, Copy) = new TransferSpec variant +
one new command here.
Structs§
- Transfer
Download Spec - Input for a single download spec (used by
transfer_download_many). - Transfer
Upload Spec - Input for a single upload spec (used by
transfer_upload_many).
Functions§
- enqueue_
download 🔒 - Register and spawn a download task. Returns the new
request_id. - enqueue_
upload 🔒 - Register and spawn an upload task. Returns the new
request_id. - multipart_
abort - Abort a single in-progress multipart upload.
- multipart_
scan - List all in-progress multipart uploads for
bucket, classifying each asBrows3r(in ourmultipart_activetable) orUnknown(foreign). - now_ms 🔒
- resolve_
client 🔒 - Resolve the S3 client for a profile, enforcing the validation gate.
- transfer_
cancel - Cancel the in-flight transfer with
request_id. - transfer_
download - Initiate a streaming download of
keyfrombuckettodest_path. - transfer_
download_ many - Bulk-enqueue multiple downloads.
- transfer_
list - List transfers, optionally filtered by state.
- transfer_
retry - Re-enqueue a failed or canceled transfer from the beginning.
- transfer_
upload - Initiate an upload of
source_pathtobucket/key. - transfer_
upload_ many - Bulk-enqueue multiple uploads.