Skip to main content

Module transfers

Module transfers 

Source
Expand description

Transfer registry and domain types for file downloads and uploads.

§Architecture

§OCP contract

  • Transfer gains checksum, priority, retries as optional fields later with no breaking change to existing call sites.
  • TransferRegistry is decoupled from transfer logic — upload (task 32) reuses the same registry without modification.
  • TransferState uses 5 variants as per design.md events line 397.
  • TransferSpec is an open enum — new kinds (Move, Copy) are additive.
  • TransferFilter is extensible without breaking existing call sites.
  • The concurrency cap is a single Arc<Semaphore> — rebuilding on settings changes is one rebuild_semaphore call.

Modules§

download
Streaming download implementation.
notify
Terminal-state notification helper for transfers.
progress
Progress event emission helpers for transfers.
upload
Single-part and multipart upload implementation.

Structs§

CancelToken
Sender side of a cancellation signal for one transfer.
Transfer
Full state record for one download or upload transfer.
TransferQueue
Concurrency-capped transfer queue wrapping TransferRegistry.
TransferQueueHandle
Tauri managed-state handle for the transfer queue.
TransferRegistry
In-memory registry of active and recently-completed transfers.
TransferRegistryHandle
Tauri managed state handle for the transfer registry.

Enums§

TransferFilter
Filter applied by transfer_list to narrow the returned set.
TransferKind
Discriminates between download and upload transfers.
TransferSpec
Discriminated union describing a transfer that can be enqueued into TransferQueue.
TransferState
Lifecycle state of a transfer.

Functions§

new_transfer_id