Module queue

Module queue 

Source
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§

FailedDownload
A failed download kept for display purposes.
QueueSnapshot
Snapshot of the entire download queue for API responses.
QueuedDownload
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.