Struct scoped_pool::ThreadConfig
[−]
[src]
pub struct ThreadConfig { /* fields omitted */ }
Thread configuration. Provides detailed control over the properties and behavior of new threads.
Methods
impl ThreadConfig
[src]
fn new() -> ThreadConfig
Generates the base configuration for spawning a thread, from which configuration methods can be chained.
fn prefix<S: Into<String>>(self, prefix: S) -> ThreadConfig
Name prefix of spawned threads. Thread number will be appended to this prefix to form each thread's unique name. Currently the name is used for identification only in panic messages.
fn stack_size(self, stack_size: usize) -> ThreadConfig
Sets the size of the stack for the new thread.
Trait Implementations
impl Default for ThreadConfig
[src]
fn default() -> ThreadConfig
Returns the "default value" for a type. Read more