Struct bevy_tasks::TaskPoolBuilder[][src]

pub struct TaskPoolBuilder { /* fields omitted */ }

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]

impl Debug for TaskPoolBuilder[src]

impl Default for TaskPoolBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.