[−][src]Struct thread_binder::ThreadPoolBuilder
Same as rayon's ThreadPoolBuilder expect you get an extra bind
method.
Methods
impl ThreadPoolBuilder
[src]
pub fn new() -> Self
[src]
Creates a new ThreadPoolBuilder. We bind to numa by default.
pub fn bind(self, bind_policy: Policy) -> Self
[src]
Set binding policy.
pub fn start_handler<H>(self, start_handler: H) -> Self where
H: Fn(usize) + Send + Sync + 'static,
[src]
H: Fn(usize) + Send + Sync + 'static,
pub fn num_threads(self, num_threads: usize) -> Self
[src]
Set number of threads wanted.
pub fn build(self) -> Result<ThreadPool, ThreadPoolBuildError>
[src]
Build the ThreadPool
.
pub fn build_global(self) -> Result<(), ThreadPoolBuildError>
[src]
Build the global ThreadPool
.
Trait Implementations
impl Default for ThreadPoolBuilder
[src]
Auto Trait Implementations
impl !Send for ThreadPoolBuilder
impl !Sync for ThreadPoolBuilder
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> 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>,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,