Struct bevy_tasks::TaskPoolBuilder [−][src]
Used to create a TaskPool
Implementations
impl TaskPoolBuilder
[src]
pub fn new() -> Self
[src]
Creates a new TaskPoolBuilder instance
pub fn num_threads(self, num_threads: usize) -> Self
[src]
Override the number of threads created for the pool. If unset, we default to the number of logical cores of the system
pub fn stack_size(self, stack_size: usize) -> Self
[src]
Override the stack size of the threads created for the pool
pub fn thread_name(self, thread_name: String) -> Self
[src]
Override the name of the threads created for the pool. If set, threads will be named <thread_name> (<thread_index>), i.e. “MyThreadPool (2)”
pub fn build(self) -> TaskPool
[src]
Creates a new ThreadPoolBuilder based on the current options.
Trait Implementations
impl Clone for TaskPoolBuilder
[src]
fn clone(&self) -> TaskPoolBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TaskPoolBuilder
[src]
impl Default for TaskPoolBuilder
[src]
fn default() -> TaskPoolBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TaskPoolBuilder
impl Send for TaskPoolBuilder
impl Sync for TaskPoolBuilder
impl Unpin for TaskPoolBuilder
impl UnwindSafe for TaskPoolBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,