mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-15 01:01:25 +10:00
chore(download manager): Added manage_go_signal command
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -7,11 +7,12 @@ use super::{
|
||||
};
|
||||
|
||||
pub trait Downloadable: Send + Sync {
|
||||
fn download(&mut self) -> Result<(), ApplicationDownloadError>;
|
||||
fn download(&self) -> Result<bool, ApplicationDownloadError>;
|
||||
fn progress(&self) -> Arc<ProgressObject>;
|
||||
fn control_flag(&self) -> DownloadThreadControl;
|
||||
fn metadata(&self) -> Arc<DownloadableMetadata>;
|
||||
fn on_initialised(&self, app_handle: &AppHandle);
|
||||
fn on_error(&self, app_handle: &AppHandle);
|
||||
fn on_complete(&self, app_handle: &AppHandle);
|
||||
fn on_incomplete(&self, app_handle: &AppHandle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user