pub struct SimpleExecutor { /* private fields */ }
๐Deprecated since 0.17.0: Use SingleThreadedExecutor instead. See https://github.com/bevyengine/bevy/issues/18453 for motivation.
Expand description
A variant of SingleThreadedExecutor
that calls
apply_deferred
immediately after running each system.
Implementationsยง
Sourceยงimpl SimpleExecutor
impl SimpleExecutor
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new simple executor for use in a Schedule
.
This calls each system in order and immediately calls System::apply_deferred
.
Trait Implementationsยง
Sourceยงimpl Default for SimpleExecutor
impl Default for SimpleExecutor
Sourceยงfn default() -> SimpleExecutor
fn default() -> SimpleExecutor
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for SimpleExecutor
impl RefUnwindSafe for SimpleExecutor
impl Send for SimpleExecutor
impl Sync for SimpleExecutor
impl Unpin for SimpleExecutor
impl UnwindSafe for SimpleExecutor
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
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.Sourceยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
Sourceยงimpl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Sourceยงfn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self
using default()
.
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Sourceยงfn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.