tauri-queue 0.3.0

Tauri integration for agent-queue background job processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};
use tauri_queue::*;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TestJob {
    pub data: String,
}

impl JobHandler for TestJob {
    async fn execute(&self, _ctx: &JobContext) -> Result<JobResult, QueueError> {
        Ok(JobResult::success_with_output(self.data.clone()))
    }
}