Expand description
Queue DTOs for API responses and snapshots.
These types are “UI safe” - Clone + Debug + Serialize + Deserialize with no infrastructure dependencies. They’re used for transmitting queue state to frontends via SSE, Tauri events, or CLI output.
Structs§
- Failed
Download - A failed download kept for display purposes.
- Queue
Snapshot - Snapshot of the entire download queue for API responses.
- Queued
Download - A single download in the queue.
Functions§
- format_
bytes_ 🔒per_ second - Format bytes per second as human-readable string.
- format_
duration 🔒 - Format seconds as human-readable duration.