pub trait ThreadSpawn {
    // Required method
    fn spawn(&mut self, thread: Thread) -> Result<()>;
}Expand description
ThreadSpawn defines how threads are spawned in an AsyncPool.
This trait allows customization of thread creation (for example, setting names or adjusting stack sizes) without altering the core functionality of the pool.