Struct StartupSystemStage
pub struct StartupSystemStage<T>{
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§
§impl<T> StartupSystemStage<T>
impl<T> StartupSystemStage<T>
pub fn new<L>(label: L) -> StartupSystemStage<T>where
L: StageLabel,
pub fn new<L>(label: L) -> StartupSystemStage<T>where
L: StageLabel,
Create a new, empty stage, for the given label.
Trait Implementations§
§impl<T> SystemStage for StartupSystemStage<T>
impl<T> SystemStage for StartupSystemStage<T>
§fn name(&self) -> String
fn name(&self) -> String
The human-readable name for the stage, used for error messages when something goes wrong.
§fn add_system(&mut self, system: StaticSystem<(), ()>)
fn add_system(&mut self, system: StaticSystem<(), ()>)
Add a system to this stage.
§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