[−][src]Struct uvth::ThreadPoolBuilder
A factory for configuring and creating a ThreadPool.
Methods
impl ThreadPoolBuilder
[src]
pub fn new() -> Self
[src]
Create a new factory with default options. Default values are found in the docs for each respective method.
pub fn num_threads(self, num_threads: usize) -> Self
[src]
Set the amount of threads. If you do not manually set this it will have one thread per logical processor.
pub fn name(self, name: String) -> Self
[src]
Set the name of the threads. Not setting this will cause the threads to go unnamed.
pub fn stack_size(self, stack_size: usize) -> Self
[src]
Set the stack size of the threads. Not setting this will result in platform specific behaviour.
pub fn build(self) -> ThreadPool
[src]
Assemble the threadpool.
Auto Trait Implementations
impl Send for ThreadPoolBuilder
impl Unpin for ThreadPoolBuilder
impl Sync for ThreadPoolBuilder
impl UnwindSafe for ThreadPoolBuilder
impl RefUnwindSafe for ThreadPoolBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,