1 2 3 4 5 6 7
use tokio::sync::OwnedSemaphorePermit; #[derive(Debug)] pub struct WorkerJob { pub job_id: String, pub permit: OwnedSemaphorePermit, }