chore: refactor downloads

This commit is contained in:
Michel de Graaf
2025-11-18 14:11:25 +01:00
parent 467de9cb91
commit 79da19ed0f
5 changed files with 114 additions and 59 deletions
+1 -9
View File
@@ -94,16 +94,8 @@ pub struct Download {
pub token: u32,
pub size: u64,
pub download_directory: String,
pub sender: Sender<DownloadStatus>,
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct DownloadResult {
pub filename: String,
pub username: String,
pub status: DownloadStatus,
pub elapsed_time: std::time::Duration,
pub sender: Sender<DownloadStatus>,
}
#[derive(Debug, Clone)]