Skip to main content

SystemExecutor

Trait SystemExecutor 

Source
pub trait SystemExecutor: Send + Sync {
    // Required methods
    fn init(&mut self, schedule: &SystemSchedule);
    fn run(
        &mut self,
        schedule: &mut SystemSchedule,
        world: &mut World,
        skip_systems: Option<&FixedBitSet>,
        error_handler: fn(BevyError, ErrorContext),
    );
    fn set_apply_final_deferred(&mut self, value: bool);
}
Expand description

Types that can run a SystemSchedule on a World.

Required Methods§

Source

fn init(&mut self, schedule: &SystemSchedule)

Called once after the schedule is built or rebuilt.

Source

fn run( &mut self, schedule: &mut SystemSchedule, world: &mut World, skip_systems: Option<&FixedBitSet>, error_handler: fn(BevyError, ErrorContext), )

Runs the systems in the schedule.

Source

fn set_apply_final_deferred(&mut self, value: bool)

Sets whether deferred system buffers should be applied after all systems have run.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§