pub struct Queue { /* private fields */ }Expand description
The queue itself, which consists of the SQLite connection and tasks to monitor running jobs.
Implementations§
Source§impl 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.
Source§impl Queue
impl Queue
Sourcepub async fn new(file: &Path) -> Result<Queue>
pub async fn new(file: &Path) -> Result<Queue>
Open or create a Queue database at the given path.
Sourcepub fn builder(path: &Path) -> QueueOptions<'_>
pub fn builder(path: &Path) -> QueueOptions<'_>
Create a builder object for a Queue
Sourcepub async fn with_options(options: QueueOptions<'_>) -> Result<Queue>
pub async fn with_options(options: QueueOptions<'_>) -> Result<Queue>
Open or create a Queue database with the given [LocalQueueOptions].
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Queue
impl !RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl !UnwindSafe for Queue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more