pub struct WorkerPool<W: Worker, F: WorkerFactory<W>> { /* private fields */ }Implementations§
Source§impl<W: Worker, F: WorkerFactory<W>> WorkerPool<W, F>
impl<W: Worker, F: WorkerFactory<W>> WorkerPool<W, F>
pub fn new(max_count: u16, factory: F) -> WorkerPoolRef<W, F>
pub async fn get_worker(self: &WorkerPoolRef<W, F>) -> WorkerGuard<W, F>
Auto Trait Implementations§
impl<W, F> !Freeze for WorkerPool<W, F>
impl<W, F> RefUnwindSafe for WorkerPool<W, F>where
F: RefUnwindSafe,
impl<W, F> Send for WorkerPool<W, F>
impl<W, F> Sync for WorkerPool<W, F>
impl<W, F> Unpin for WorkerPool<W, F>where
W: Unpin,
impl<W, F> UnwindSafe for WorkerPool<W, F>where
F: RefUnwindSafe,
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