pub enum LifecycleBoundaryEvent {
OsBackground,
OsForeground,
SurfaceLost {
surface_generation: u64,
},
SurfaceRecreated {
surface_generation: u64,
},
RouteFreeze {
page_id: u64,
},
RouteResume {
page_id: u64,
},
}Expand description
Distinct lifecycle boundary event separating OS background, surface loss, and route-level freeze semantics.
Variants§
OsBackground
Host OS moved the application into background execution.
OsForeground
Host OS returned the application to foreground execution.
SurfaceLost
Graphics swapchain/surface was lost while keeping logical page state intact.
SurfaceRecreated
Graphics swapchain/surface was recreated ready for full redraw.
RouteFreeze
Application router froze a page under PageRetention::Freeze.
RouteResume
Application router resumed a previously frozen or evicted page.
Trait Implementations§
Source§impl Clone for LifecycleBoundaryEvent
impl Clone for LifecycleBoundaryEvent
impl Copy for LifecycleBoundaryEvent
Source§impl Debug for LifecycleBoundaryEvent
impl Debug for LifecycleBoundaryEvent
impl Eq for LifecycleBoundaryEvent
Source§impl Hash for LifecycleBoundaryEvent
impl Hash for LifecycleBoundaryEvent
Source§impl PartialEq for LifecycleBoundaryEvent
impl PartialEq for LifecycleBoundaryEvent
impl StructuralPartialEq for LifecycleBoundaryEvent
Auto Trait Implementations§
impl Forget for LifecycleBoundaryEvent
impl Freeze for LifecycleBoundaryEvent
impl Move for LifecycleBoundaryEvent
impl RefUnwindSafe for LifecycleBoundaryEvent
impl Send for LifecycleBoundaryEvent
impl Sync for LifecycleBoundaryEvent
impl Unpin for LifecycleBoundaryEvent
impl UnsafeUnpin for LifecycleBoundaryEvent
impl UnwindSafe for LifecycleBoundaryEvent
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