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