Enum bevy_ecs::schedule::ExecutorKind
source · pub enum ExecutorKind {
SingleThreaded,
Simple,
MultiThreaded,
}
Expand description
Specifies how a Schedule
will be run.
The default depends on the target platform:
SingleThreaded
on WASM.MultiThreaded
everywhere else.
Variants§
SingleThreaded
Runs the schedule using a single thread.
Useful if you’re dealing with a single-threaded environment, saving your threads for other things, or just trying minimize overhead.
Simple
Like SingleThreaded
but calls apply_deferred
immediately after running each system.
MultiThreaded
Runs the schedule using a thread pool. Non-conflicting systems can run in parallel.
Trait Implementations§
source§impl Clone for ExecutorKind
impl Clone for ExecutorKind
source§fn clone(&self) -> ExecutorKind
fn clone(&self) -> ExecutorKind
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 ExecutorKind
impl Debug for ExecutorKind
source§impl Default for ExecutorKind
impl Default for ExecutorKind
source§fn default() -> ExecutorKind
fn default() -> ExecutorKind
Returns the “default value” for a type. Read more
source§impl PartialEq for ExecutorKind
impl PartialEq for ExecutorKind
source§fn eq(&self, other: &ExecutorKind) -> bool
fn eq(&self, other: &ExecutorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExecutorKind
impl Eq for ExecutorKind
impl StructuralEq for ExecutorKind
impl StructuralPartialEq for ExecutorKind
Auto Trait Implementations§
impl RefUnwindSafe for ExecutorKind
impl Send for ExecutorKind
impl Sync for ExecutorKind
impl Unpin for ExecutorKind
impl UnwindSafe for ExecutorKind
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World
.