pub struct WorkerPool { /* private fields */ }Implementations§
Source§impl WorkerPool
impl WorkerPool
pub fn new(queue: Arc<dyn Queue>, config: WorkerConfig) -> Self
pub fn shutdown_token(&self) -> CancellationToken
pub async fn run(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for WorkerPool
impl !RefUnwindSafe for WorkerPool
impl Send for WorkerPool
impl Sync for WorkerPool
impl Unpin for WorkerPool
impl UnsafeUnpin for WorkerPool
impl !UnwindSafe for WorkerPool
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