pub trait AppCheckpointExt {
// Required methods
fn allow_checkpoint<T: Any>(&mut self) -> &mut Self;
fn deny_checkpoint<T: Any>(&mut self) -> &mut Self;
}
Available on crate features
checkpoints
and reflect
only.Expand description
Extension trait that adds rollback checkpoint-related methods to Bevy’s
App
.
Required Methods§
Sourcefn allow_checkpoint<T: Any>(&mut self) -> &mut Self
fn allow_checkpoint<T: Any>(&mut self) -> &mut Self
Set a type to allow rollback - it will be included in rollback checkpoints and affected by save/load.
Sourcefn deny_checkpoint<T: Any>(&mut self) -> &mut Self
fn deny_checkpoint<T: Any>(&mut self) -> &mut Self
Set a type to ignore rollback - it will be included in save/load but it won’t change during rollback.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.