pub struct WorkerPoolUnbounded<M: Send + Sized + Unpin + 'static, W: Worker<M>, S: WorkerPoolImpl<M, W>>(/* private fields */);Implementations§
Source§impl<M, W, S> WorkerPoolUnbounded<M, W, S>
impl<M, W, S> WorkerPoolUnbounded<M, W, S>
pub fn new( inner: S, min_workers: usize, max_workers: usize, worker_timeout: Duration, ) -> Self
pub fn get_inner(&self) -> &S
pub fn set_use_thread(&mut self, ok: bool)
pub async fn start(&self)
pub async fn try_spawn(&self, num: usize)
pub async fn close(&self)
pub fn get_worker_count(&self) -> usize
Trait Implementations§
Source§impl<M, W, S> Clone for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> Clone for WorkerPoolUnbounded<M, W, S>
Source§impl<M, W, S> WorkerPoolInf<M> for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> WorkerPoolInf<M> for WorkerPoolUnbounded<M, W, S>
Auto Trait Implementations§
impl<M, W, S> Freeze for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> !RefUnwindSafe for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> Send for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> Sync for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> Unpin for WorkerPoolUnbounded<M, W, S>
impl<M, W, S> !UnwindSafe for WorkerPoolUnbounded<M, W, S>
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