Skip to main content

start_download

Function start_download 

Source
pub async fn start_download(
    db: State<'_, DatabaseWrapper>,
    download_manager: State<'_, DownloadManagerWrapper>,
    app: AppHandle,
    download_id: i64,
    stream_url: String,
    target_dir: String,
) -> Result<(), String>
Expand description

Start downloading a file immediately This command actually downloads the file using the worker