pub struct StartupSystemStage<T: HasSchema + Default + Clone> {
pub id: Ulid,
pub name: String,
pub systems: Vec<StaticSystem<(), ()>>,
/* private fields */
}Expand description
SystemStage for running systems once on startup.
Fields§
§id: UlidThe unique identifier for the stage.
name: StringThe human-readable name for the stage, used for error messages when something goes wrong.
systems: Vec<StaticSystem<(), ()>>The list of systems in the stage.
Each system will be run in the order that they are in in this list.
Implementations§
Source§impl<T: HasSchema + Clone + Default> StartupSystemStage<T>
impl<T: HasSchema + Clone + Default> StartupSystemStage<T>
Sourcepub fn new<L: StageLabel>(label: L) -> Self
pub fn new<L: StageLabel>(label: L) -> Self
Create a new, empty stage, for the given label.
Trait Implementations§
Source§impl<T: HasSchema + Clone + Default> SystemStage for StartupSystemStage<T>
impl<T: HasSchema + Clone + Default> SystemStage for StartupSystemStage<T>
Source§fn name(&self) -> String
fn name(&self) -> String
The human-readable name for the stage, used for error messages when something goes wrong.
Source§fn add_system(&mut self, system: StaticSystem<(), ()>)
fn add_system(&mut self, system: StaticSystem<(), ()>)
Add a system to this stage.
Source§fn remove_all_systems(&mut self)
fn remove_all_systems(&mut self)
Remove all systems from this stage.
Auto Trait Implementations§
impl<T> Freeze for StartupSystemStage<T>
impl<T> !RefUnwindSafe for StartupSystemStage<T>
impl<T> Send for StartupSystemStage<T>
impl<T> Sync for StartupSystemStage<T>
impl<T> Unpin for StartupSystemStage<T>where
T: Unpin,
impl<T> !UnwindSafe for StartupSystemStage<T>
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