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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".