pub enum PageRetention {
Destroy,
Freeze,
Alive,
}Expand description
Retention policy controlling how a routed page behaves when the user navigates away.
Variants§
Destroy
Dispose the page subtree, reactive scope, and lifecycle resources on leave; recreate fresh on next visit.
Freeze
Retain the scene subtree hidden (Display::None), freeze all reactive effects and animations while tracking cross-page dirty state, and coalesce updates atomically on resume.
Alive
Hide the page visually (Display::None) while keeping its reactive effects running in the background.
Trait Implementations§
Source§impl Clone for PageRetention
impl Clone for PageRetention
impl Copy for PageRetention
Source§impl Debug for PageRetention
impl Debug for PageRetention
Source§impl Default for PageRetention
impl Default for PageRetention
impl Eq for PageRetention
Source§impl Hash for PageRetention
impl Hash for PageRetention
Source§impl PartialEq for PageRetention
impl PartialEq for PageRetention
impl StructuralPartialEq for PageRetention
Auto Trait Implementations§
impl Forget for PageRetention
impl Freeze for PageRetention
impl Move for PageRetention
impl RefUnwindSafe for PageRetention
impl Send for PageRetention
impl Sync for PageRetention
impl Unpin for PageRetention
impl UnsafeUnpin for PageRetention
impl UnwindSafe for PageRetention
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