pub struct JobQueue<T, B>where
B: JobQueueBackend<T>,{ /* private fields */ }Implementations§
Source§impl<T, B> JobQueue<T, B>where
B: JobQueueBackend<T>,
impl<T, B> JobQueue<T, B>where
B: JobQueueBackend<T>,
pub fn new(backend: B, options: JobQueueOptions) -> Self
pub async fn submit(&self, job: Job<T>) -> Result<(), JobQueueError>
Trait Implementations§
Auto Trait Implementations§
impl<T, B> Freeze for JobQueue<T, B>where
B: Freeze,
impl<T, B> RefUnwindSafe for JobQueue<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for JobQueue<T, B>
impl<T, B> Sync for JobQueue<T, B>
impl<T, B> Unpin for JobQueue<T, B>
impl<T, B> UnwindSafe for JobQueue<T, B>where
B: UnwindSafe,
T: UnwindSafe,
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