Struct ThreadBuilder
pub struct ThreadBuilder { /* private fields */ }
Thread builder used for customization via [ThreadPoolBuilder::spawn_handler()].
Implementations
impl ThreadBuilder
fn index(&self) -> usizeGets the index of this thread in the pool, within
0..num_threads.fn name(&self) -> Option<&str>Gets the string that was specified by
ThreadPoolBuilder::name().fn stack_size(&self) -> Option<usize>Gets the value that was specified by
ThreadPoolBuilder::stack_size().fn run(self)Executes the main loop for this thread. This will not return until the thread pool is dropped.
Trait Implementations
impl Debug for ThreadBuilder
fn fmt(&self, f: &mut Formatter<'_>) -> Result