pub enum RenderEvent {
SurfaceCreated,
SurfaceChanged,
SurfaceDestroyed,
Pause,
Resume,
}Expand description
A surface-lifecycle event that drives a render-thread RenderPhase
transition — the pure, Copy counterpart of a RenderCommand (mirroring
frust-render’s SurfaceEvent/callback split, keeping the transition table
host-testable without the owned Ack/window payloads).
Variants§
SurfaceCreated
A surface became available (surfaceCreated/resumed/set_surface).
SurfaceChanged
The existing surface was resized/reconfigured (rotation, inset change).
SurfaceDestroyed
The surface is being torn down (surfaceDestroyed/suspended).
Pause
The app is backgrounding: stop submitting until Self::Resume.
Resume
The app returned to the foreground with its surface intact.
Trait Implementations§
Source§impl Clone for RenderEvent
impl Clone for RenderEvent
impl Copy for RenderEvent
Source§impl Debug for RenderEvent
impl Debug for RenderEvent
impl Eq for RenderEvent
Source§impl PartialEq for RenderEvent
impl PartialEq for RenderEvent
impl StructuralPartialEq for RenderEvent
Auto Trait Implementations§
impl Freeze for RenderEvent
impl RefUnwindSafe for RenderEvent
impl Send for RenderEvent
impl Sync for RenderEvent
impl Unpin for RenderEvent
impl UnsafeUnpin for RenderEvent
impl UnwindSafe for RenderEvent
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
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.