Struct rayon_logs::ThreadPoolBuilder [−][src]
pub struct ThreadPoolBuilder { /* fields omitted */ }
We rewrite ThreadPoolBuilders since we need to overload the start handler in order to give each thread a place to write its logs.
Methods
impl ThreadPoolBuilder
[src]
impl ThreadPoolBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new LoggedPoolBuilder.
pub fn num_threads(self, threads_number: usize) -> Self
[src]
pub fn num_threads(self, threads_number: usize) -> Self
Set number of threads wanted.
pub fn build(self) -> Result<ThreadPool, ThreadPoolBuildError>
[src]
pub fn build(self) -> Result<ThreadPool, ThreadPoolBuildError>
Build the ThreadPool
.
Trait Implementations
impl Default for ThreadPoolBuilder
[src]
impl Default for ThreadPoolBuilder
fn default() -> ThreadPoolBuilder
[src]
fn default() -> ThreadPoolBuilder
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for ThreadPoolBuilder
impl !Send for ThreadPoolBuilder
impl !Sync for ThreadPoolBuilder
impl !Sync for ThreadPoolBuilder