Trait HasWorkers

Source
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§

Source

type WorkerPool: WorkerPool

Type of the worker pool

Required Methods§

Source

fn workers(&self) -> &Self::WorkerPool

Get the worker pool

Implementors§