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