pub struct AppstreamWorker {
sender: Arc<Sender<TaskResponse>>,
}
Fields§
§sender: Arc<Sender<TaskResponse>>
Implementations§
source§impl AppstreamWorker
impl AppstreamWorker
pub fn new(sender: Sender<TaskResponse>) -> Self
pub fn process_task(&self, _task: AppstreamTask, _task_uuid: &str)
pub fn cancel_task(&self, _task_uuid: &str)
Trait Implementations§
source§impl Clone for AppstreamWorker
impl Clone for AppstreamWorker
source§fn clone(&self) -> AppstreamWorker
fn clone(&self) -> AppstreamWorker
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