pub struct Queue { /* private fields */ }Expand description
The queue itself, which consists of the SQLite connection and tasks to monitor running jobs.
Implementations
sourceimpl Queue
impl Queue
sourcepub async fn get_job_status(&self, external_id: Uuid) -> Result<JobStatus>
pub async fn get_job_status(&self, external_id: Uuid) -> Result<JobStatus>
Return information about a job
sourcepub async fn num_active_jobs(&self) -> Result<NumActiveJobs>
pub async fn num_active_jobs(&self) -> Result<NumActiveJobs>
Return counts about the number of jobs running and waiting to run.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl !UnwindSafe for Queue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more