pub enum FrameOutcome {
Rendered,
Skipped,
Redraw,
SurfaceLost,
}Expand description
The outcome of a single render call.
Lets the shell react without knowing the internal state: request another redraw when the surface was reconfigured, recreate the surface when it was lost, or do nothing when a frame was drawn or skipped.
Variants§
Rendered
A frame was encoded and presented to the swapchain.
Skipped
No renderable surface (NoSurface/SurfaceLost) or a transient acquire
failure: nothing was drawn and nothing was queued.
Redraw
The surface was stale and has been reconfigured; the shell should request another redraw to draw against the fresh configuration.
SurfaceLost
The surface was lost and has been dropped; the machine is now in
SurfacePhase::SurfaceLost and the shell must recreate the surface via
on_surface_created.
Trait Implementations§
Source§impl Clone for FrameOutcome
impl Clone for FrameOutcome
Source§fn clone(&self) -> FrameOutcome
fn clone(&self) -> FrameOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameOutcome
Source§impl Debug for FrameOutcome
impl Debug for FrameOutcome
impl Eq for FrameOutcome
Source§impl PartialEq for FrameOutcome
impl PartialEq for FrameOutcome
impl StructuralPartialEq for FrameOutcome
Auto Trait Implementations§
impl Freeze for FrameOutcome
impl RefUnwindSafe for FrameOutcome
impl Send for FrameOutcome
impl Sync for FrameOutcome
impl Unpin for FrameOutcome
impl UnsafeUnpin for FrameOutcome
impl UnwindSafe for FrameOutcome
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.