pub trait ThreadSpawn {
    // Required method
    fn spawn(&mut self, thread: ThreadBuilder) -> Result<()>;
}Expand description
Generalized trait for spawning a thread in the Registry.
This trait is pub-in-private – E0445 forces us to make it public, but we don’t actually want to expose these details in the API.
Required Methods§
Sourcefn spawn(&mut self, thread: ThreadBuilder) -> Result<()>
 
fn spawn(&mut self, thread: ThreadBuilder) -> Result<()>
Spawn a thread with the ThreadBuilder parameters, and then
call ThreadBuilder::run().