Struct bevy_tasks::TaskPoolBuilder
source · pub struct TaskPoolBuilder {}
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