pub trait HasWorkers: Sync {
type WorkerPool: WorkerPool;
// Required method
fn workers(&self) -> &Self::WorkerPool;
}
Expand description
Helper trait to be implemented by Manager
and ManagerRef
if they
feature a WorkerPool
.
Required Associated Types§
Sourcetype WorkerPool: WorkerPool
type WorkerPool: WorkerPool
Type of the worker pool
Required Methods§
Sourcefn workers(&self) -> &Self::WorkerPool
fn workers(&self) -> &Self::WorkerPool
Get the worker pool