pub enum SurfaceEvent {
Created,
Destroyed,
Lost,
}Expand description
A platform lifecycle event that drives a phase transition.
Kept separate from the wgpu side so the transition table is pure and
unit-testable (next_phase).
Variants§
Created
surfaceCreated (Android) / resumed (desktop): a surface is available.
Destroyed
surfaceDestroyed (Android) / suspended (desktop): the surface is gone.
Lost
The swapchain reported Lost on acquire, mid-render.
Trait Implementations§
Source§impl Clone for SurfaceEvent
impl Clone for SurfaceEvent
impl Copy for SurfaceEvent
Source§impl Debug for SurfaceEvent
impl Debug for SurfaceEvent
impl Eq for SurfaceEvent
Source§impl PartialEq for SurfaceEvent
impl PartialEq for SurfaceEvent
impl StructuralPartialEq for SurfaceEvent
Auto Trait Implementations§
impl Freeze for SurfaceEvent
impl RefUnwindSafe for SurfaceEvent
impl Send for SurfaceEvent
impl Sync for SurfaceEvent
impl Unpin for SurfaceEvent
impl UnsafeUnpin for SurfaceEvent
impl UnwindSafe for SurfaceEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.