[][src]Struct scoped_pool::ThreadConfig

pub struct ThreadConfig { /* fields omitted */ }

Thread configuration. Provides detailed control over the properties and behavior of new threads.

Methods

impl ThreadConfig[src]

pub fn new() -> ThreadConfig[src]

Generates the base configuration for spawning a thread, from which configuration methods can be chained.

pub fn prefix<S: Into<String>>(self, prefix: S) -> ThreadConfig[src]

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.

pub fn stack_size(self, stack_size: usize) -> ThreadConfig[src]

Sets the size of the stack for the new thread.

Trait Implementations

impl Default for ThreadConfig[src]

Auto Trait Implementations

impl Send for ThreadConfig

impl Sync for ThreadConfig

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.