pub struct TaskPoolBuilder {}
Available on WebAssembly or non-crate feature
multi_threaded
only.Expand description
Used to create a TaskPool
.
Implementations§
Source§impl TaskPoolBuilder
impl TaskPoolBuilder
Sourcepub fn num_threads(self, _num_threads: usize) -> Self
pub fn num_threads(self, _num_threads: usize) -> Self
No op on the single threaded task pool
Sourcepub fn stack_size(self, _stack_size: usize) -> Self
pub fn stack_size(self, _stack_size: usize) -> Self
No op on the single threaded task pool
Sourcepub fn thread_name(self, _thread_name: String) -> Self
pub fn thread_name(self, _thread_name: String) -> Self
No op on the single threaded task pool
Trait Implementations§
Source§impl Clone for TaskPoolBuilder
impl Clone for TaskPoolBuilder
Source§fn clone(&self) -> TaskPoolBuilder
fn clone(&self) -> TaskPoolBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaskPoolBuilder
impl Debug for TaskPoolBuilder
Source§impl Default for TaskPoolBuilder
impl Default for TaskPoolBuilder
Source§fn default() -> TaskPoolBuilder
fn default() -> TaskPoolBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskPoolBuilder
impl RefUnwindSafe for TaskPoolBuilder
impl Send for TaskPoolBuilder
impl Sync for TaskPoolBuilder
impl Unpin for TaskPoolBuilder
impl UnwindSafe for TaskPoolBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)