[−][src]Struct scoped_pool::ThreadConfig
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]
fn default() -> 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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,