ltk_webkit/types/
downloads.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2026 Liberux Labs, S. L. <info@liberux.net>

use std::path::PathBuf;

pub type DownloadId = u64;

#[ derive( Debug, Clone ) ]
pub enum DownloadEvent
{
	Started { id: DownloadId, uri: String, path: PathBuf },
	Progress { id: DownloadId, fraction: f64 },
	Finished { id: DownloadId },
	Failed { id: DownloadId },
}