Trait WorkerPoolImpl

Source
pub trait WorkerPoolImpl<M: Send + Sized + Unpin + 'static, W: Worker<M>>:
    Send
    + Sync
    + Sized
    + 'static {
    // Required method
    fn spawn(&self) -> W;
}

Required Methods§

Source

fn spawn(&self) -> W

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§