pub enum ExecutorKind {
SingleThreaded,
Simple,
}Expand description
Specifies how a Schedule will be run.
The default depends on the target platform:
SingleThreadedon Wasm.MultiThreadedeverywhere 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
👎Deprecated since 0.17.0: Use SingleThreaded instead. See https://github.com/bevyengine/bevy/issues/18453 for motivation.
Like SingleThreaded but calls apply_deferred
immediately after running each system.
Trait Implementations§
Source§impl Clone for ExecutorKind
impl Clone for ExecutorKind
Source§fn clone(&self) -> ExecutorKind
fn clone(&self) -> ExecutorKind
Returns a duplicate 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
impl Copy for ExecutorKind
impl Eq for ExecutorKind
impl StructuralPartialEq for ExecutorKind
Auto Trait Implementations§
impl Freeze for ExecutorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 default().
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.