Enum bevy::app::CoreSchedule
pub enum CoreSchedule {
Startup,
Main,
Outer,
FixedUpdate,
}
Expand description
The names of the default App
schedules.
The corresponding Schedule
objects are added by App::add_default_schedules
.
Variants§
Startup
The schedule that runs once when the app starts.
Main
The schedule that contains the app logic that is evaluated each tick of App::update()
.
Outer
The schedule that controls which schedules run.
This is typically created using the CoreSchedule::outer_schedule
method,
and does not need to manipulated during ordinary use.
FixedUpdate
The schedule that contains systems which only run after a fixed period of time has elapsed.
The exclusive run_fixed_update_schedule
system runs this schedule during the CoreSet::FixedUpdate
system set.
Implementations§
§impl CoreSchedule
impl CoreSchedule
pub fn outer_loop(world: &mut World, run_at_least_once: Local<'_, bool>)
pub fn outer_loop(world: &mut World, run_at_least_once: Local<'_, bool>)
An exclusive system that controls which schedule should be running.
CoreSchedule::Main
is always run.
If this is the first time this system has been run, CoreSchedule::Startup
will run before CoreSchedule::Main
.
pub fn outer_schedule() -> Schedule
pub fn outer_schedule() -> Schedule
Initializes a single threaded schedule for CoreSchedule::Outer
that contains the outer_loop
system.
Trait Implementations§
§impl Clone for CoreSchedule
impl Clone for CoreSchedule
§fn clone(&self) -> CoreSchedule
fn clone(&self) -> CoreSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CoreSchedule
impl Debug for CoreSchedule
§impl Hash for CoreSchedule
impl Hash for CoreSchedule
§impl PartialEq<CoreSchedule> for CoreSchedule
impl PartialEq<CoreSchedule> for CoreSchedule
§fn eq(&self, other: &CoreSchedule) -> bool
fn eq(&self, other: &CoreSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for CoreSchedule
impl ScheduleLabel for CoreSchedulewhere CoreSchedule: 'static + Send + Sync + Clone + Eq + Debug + Hash,
impl StructuralEq for CoreSchedule
impl StructuralPartialEq for CoreSchedule
Auto Trait Implementations§
impl RefUnwindSafe for CoreSchedule
impl Send for CoreSchedule
impl Sync for CoreSchedule
impl Unpin for CoreSchedule
impl UnwindSafe for CoreSchedule
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.