pub trait IntoSystemAppConfigs<Marker>: Sized {
    // Required method
    fn into_app_configs(self) -> SystemAppConfigs;

    // Provided methods
    fn in_schedule(self, label: impl ScheduleLabel) -> SystemAppConfigs { ... }
    fn on_startup(self) -> SystemAppConfigs { ... }
}
Expand description

Types that can convert into SystemAppConfigs.

Required Methods§

Provided Methods§

source

fn in_schedule(self, label: impl ScheduleLabel) -> SystemAppConfigs

Adds the systems to the provided schedule.

If a schedule is not specified, they will be added to the App’s default schedule.

Panics

If any of the systems have already been assigned to a schedule.

source

fn on_startup(self) -> SystemAppConfigs

Adds the systems to CoreSchedule::Startup. This is a shorthand for self.in_schedule(CoreSchedule::Startup).

Examples
app.add_systems(
    (
        startup_system_a,
        startup_system_b,
        startup_system_c,
    )
        .on_startup()
);
Panics

If any of the systems have already been assigned to a schedule.

Implementations on Foreign Types§

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5)> for (S0, S1, S2, S3, S4, S5)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6)> for (S0, S1, S2, S3, S4, S5, S6)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9, P10, S10, P11, S11> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>, S10: IntoSystemAppConfig<P10>, S11: IntoSystemAppConfig<P11>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3> IntoSystemAppConfigs<(P0, P1, P2, P3)> for (S0, S1, S2, S3)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4> IntoSystemAppConfigs<(P0, P1, P2, P3, P4)> for (S0, S1, S2, S3, S4)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>,

source§

impl<P0, S0, P1, S1> IntoSystemAppConfigs<(P0, P1)> for (S0, S1)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>,

source§

impl<P0, S0, P1, S1, P2, S2> IntoSystemAppConfigs<(P0, P1, P2)> for (S0, S1, S2)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>,

source§

impl IntoSystemAppConfigs<()> for ()

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9, P10, S10, P11, S11, P12, S12, P13, S13> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>, S10: IntoSystemAppConfig<P10>, S11: IntoSystemAppConfig<P11>, S12: IntoSystemAppConfig<P12>, S13: IntoSystemAppConfig<P13>,

source§

impl<P0, S0> IntoSystemAppConfigs<(P0,)> for (S0,)where S0: IntoSystemAppConfig<P0>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9, P10, S10> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>, S10: IntoSystemAppConfig<P10>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7)> for (S0, S1, S2, S3, S4, S5, S6, S7)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9, P10, S10, P11, S11, P12, S12, P13, S13, P14, S14> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>, S10: IntoSystemAppConfig<P10>, S11: IntoSystemAppConfig<P11>, S12: IntoSystemAppConfig<P12>, S13: IntoSystemAppConfig<P13>, S14: IntoSystemAppConfig<P14>,

source§

impl<P0, S0, P1, S1, P2, S2, P3, S3, P4, S4, P5, S5, P6, S6, P7, S7, P8, S8, P9, S9, P10, S10, P11, S11, P12, S12> IntoSystemAppConfigs<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)> for (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12)where S0: IntoSystemAppConfig<P0>, S1: IntoSystemAppConfig<P1>, S2: IntoSystemAppConfig<P2>, S3: IntoSystemAppConfig<P3>, S4: IntoSystemAppConfig<P4>, S5: IntoSystemAppConfig<P5>, S6: IntoSystemAppConfig<P6>, S7: IntoSystemAppConfig<P7>, S8: IntoSystemAppConfig<P8>, S9: IntoSystemAppConfig<P9>, S10: IntoSystemAppConfig<P10>, S11: IntoSystemAppConfig<P11>, S12: IntoSystemAppConfig<P12>,

source§

impl IntoSystemAppConfigs<()> for SystemConfigs

Implementors§