Skip to main content

Module download

Module download 

Source
Expand description

Download manager for non-WASM resources.

When the Oxide browser navigates to a URL that does not point to a .wasm module it downloads the file to the system Downloads folder instead. Multiple downloads can run in parallel, each reporting progress (bytes received, total size, speed) via shared state polled by the UI.

Structs§

DownloadManager
DownloadProgress
Snapshot of a single download’s progress at a point in time.

Enums§

DownloadState

Functions§

format_bytes
Format byte count for display: “1.2 MB”, “340 KB”, etc.

Type Aliases§

DownloadId
Identifies a single download; monotonically increasing.
SharedDownloads
Thread-safe handle shared between the download worker threads and the UI.