pub struct ThreadBuilder { /* private fields */ }
Expand description
Get the index of this thread in the pool, within 0..num_threads
.
Get the string that was specified by ThreadPoolBuilder::name()
.
Get the value that was specified by ThreadPoolBuilder::stack_size()
.
Execute the main loop for this thread. This will not return until the
thread pool is dropped.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.