Struct legion::systems::Executor[][src]

pub struct Executor { /* fields omitted */ }
Expand description

Executes a sequence of systems, potentially in parallel, and then commits their command buffers.

Systems are provided in execution order. When the parallel feature is enabled, the Executor may run some systems in parallel. The order in which side-effects (e.g. writes to resources or entities) are observed is maintained.

Implementations

Constructs a new executor for all systems to be run in a single stage.

Systems are provided in the order in which side-effects (e.g. writes to resources or entities) are to be observed.

Converts this executor into a vector of its component systems.

Executes all systems and then flushes their command buffers.

Executes all systems sequentially.

Only enabled with parallel is disabled

Flushes the recorded command buffers for all systems.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.