pub struct FlatpakWorker {
transactions: Arc<Mutex<HashMap<String, Cancellable>>>,
sender: Arc<Sender<TaskResponse>>,
}
Fields§
§transactions: Arc<Mutex<HashMap<String, Cancellable>>>
§sender: Arc<Sender<TaskResponse>>
Implementations§
source§impl FlatpakWorker
impl FlatpakWorker
pub fn new(sender: Sender<TaskResponse>) -> Self
pub fn process_task(&self, task: FlatpakTask, task_uuid: &str)
pub fn cancel_task(&self, task_uuid: &str)
fn install_flatpak(
&self,
task_uuid: &str,
task: FlatpakTask
) -> Result<(), WorkerError>
fn install_flatpak_bundle_file(
&self,
task_uuid: &str,
task: FlatpakTask
) -> Result<(), WorkerError>
fn install_flatpak_bundle_file_dry_run(
&self,
task_uuid: &str,
task: FlatpakTask
) -> Result<(), WorkerError>
fn install_flatpak_ref_file(
&self,
task_uuid: &str,
task: FlatpakTask
) -> Result<(), WorkerError>
fn install_flatpak_ref_file_dry_run(
&self,
task_uuid: &str,
task: FlatpakTask
) -> Result<(), WorkerError>
fn run_transaction(
&self,
task_uuid: String,
transaction: Transaction
) -> Result<(), WorkerError>
fn run_dry_run_transaction(
&self,
task_uuid: &str,
transaction: Transaction,
real_installation_info: &InstallationInfo
) -> Result<DryRun, WorkerError>
fn new_transaction(
&self,
task_uuid: &str,
installation_info: &InstallationInfo,
dry_run: bool
) -> Result<Transaction, WorkerError>
fn dry_run_installation(
path: &PathBuf,
real_installation: &Installation
) -> Result<Installation, WorkerError>
fn cleanup_dry_run_installation(task_uuid: &str)
fn uninstall_ref(
&self,
task_uuid: &str,
ref_: &str,
installation_info: &InstallationInfo
) -> Result<(), WorkerError>
sourcefn retrieve_flatpak_remote(&self, repo_url: &str) -> Result<Bytes, WorkerError>
fn retrieve_flatpak_remote(&self, repo_url: &str) -> Result<Bytes, WorkerError>
Downloads the .flatpakrepo file for a remote
fn parse_ref_file(keyfile: &KeyFile) -> Result<String, WorkerError>
Trait Implementations§
source§impl Clone for FlatpakWorker
impl Clone for FlatpakWorker
source§fn clone(&self) -> FlatpakWorker
fn clone(&self) -> FlatpakWorker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more