Trait AppCheckpointExt

Source
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§

Source

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.

Source

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.

Implementations on Foreign Types§

Source§

impl AppCheckpointExt for App

Source§

fn allow_checkpoint<T: Any>(&mut self) -> &mut Self

Source§

fn deny_checkpoint<T: Any>(&mut self) -> &mut Self

Implementors§