Skip to main content

HasWorkers

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§