Struct FixedMainSchedule
pub struct FixedMainSchedule(/* private fields */);Expand description
A Schedule that is part of the main Schedule that runs at a fixed interval, regardless of the frame rate. It may run zero or multiple times per frame.
Implementations§
§impl FixedMainSchedule
impl FixedMainSchedule
pub fn new() -> Self
Methods from Deref<Target = Schedule>§
Sourcepub fn dump_if_env(&self) -> Result<(), Error>
pub fn dump_if_env(&self) -> Result<(), Error>
Dumps the schedule to a file specified by the PULZ_DUMP_SCHEDULE environment variable, if it is set.
The dump-format can be specified by the PULZ_DUMP_SCHEDULE_FORMAT environment variable and defaults to debug.
pub fn dump_file( &self, format: ScheduleDumpFormat, path: &Path, backtrace: Option<&Backtrace>, ) -> Result<(), Error>
pub fn dump( &self, format: ScheduleDumpFormat, out: &mut dyn Write, backtrace: Option<&Backtrace>, ) -> Result<(), Error>
Sourcepub fn run(&mut self, resources: &mut Resources)
pub fn run(&mut self, resources: &mut Resources)
Runs a single iteration of all active systems.
Exclusive-Systems and Non-Send Systems are always run on the current thread. Send-Systems are send on a thread-pool.
Sourcepub fn run_local(&mut self, resources: &mut Resources)
pub fn run_local(&mut self, resources: &mut Resources)
Runs a single iteration of all active systems.
run_local runs all systems on the current thread.
pub fn add_system<S, Marker>(&mut self, system: S) -> ScheduleNodeBuilder<'_>
pub fn add_system_unsend<S, Marker>( &mut self, system: S, ) -> ScheduleNodeBuilder<'_>
pub fn add_system_exclusive<S, Marker>(
&mut self,
system: S,
) -> ScheduleNodeBuilder<'_>where
S: IntoSystem<Marker>,
pub fn chain(&mut self, phases: impl IntoIterator<Item = impl SystemSet>)
pub fn add_dependency( &mut self, dependency: impl SystemSet, dependent: impl SystemSet, )
pub fn init(&mut self, resources: &mut Resources) -> bool
Trait Implementations§
§impl AsMut<Schedule> for FixedMainSchedule
impl AsMut<Schedule> for FixedMainSchedule
§impl AsRef<Schedule> for FixedMainSchedule
impl AsRef<Schedule> for FixedMainSchedule
§impl Debug for FixedMainSchedule
impl Debug for FixedMainSchedule
§impl Default for FixedMainSchedule
impl Default for FixedMainSchedule
§fn default() -> FixedMainSchedule
fn default() -> FixedMainSchedule
Returns the “default value” for a type. Read more
§impl Deref for FixedMainSchedule
impl Deref for FixedMainSchedule
§impl DerefMut for FixedMainSchedule
impl DerefMut for FixedMainSchedule
§impl ExclusiveSystem for FixedMainSchedule
impl ExclusiveSystem for FixedMainSchedule
fn run_exclusive(&mut self, resources: &mut Resources)
§impl IntoSystem<()> for FixedMainSchedule
impl IntoSystem<()> for FixedMainSchedule
type System = FixedMainSchedule
fn into_system(self) -> Self
§impl SystemInit for FixedMainSchedule
impl SystemInit for FixedMainSchedule
fn init(&mut self, resources: &mut Resources)
fn system_type_name(&self) -> &'static str
fn system_type_id(&self) -> TypeId
fn system_label(&self) -> SystemLabel
Auto Trait Implementations§
impl Freeze for FixedMainSchedule
impl !RefUnwindSafe for FixedMainSchedule
impl !Send for FixedMainSchedule
impl !Sync for FixedMainSchedule
impl Unpin for FixedMainSchedule
impl !UnwindSafe for FixedMainSchedule
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