pub enum AcquireAction {
Present,
Reconfigure,
Lose,
Skip,
}Expand description
What the renderer should do after an acquire attempt.
Variants§
Present
Present the acquired texture; report FrameOutcome::Rendered.
Reconfigure
Reconfigure the surface and ask the shell to redraw
(FrameOutcome::Redraw) — an Outdated acquire must still request a
redraw after reconfiguring, not silently reconfigure and stall.
Lose
Drop the surface, transition to SurfaceLost, report
FrameOutcome::SurfaceLost so the shell can recreate it.
Skip
Skip this frame; report FrameOutcome::Skipped.
Trait Implementations§
Source§impl Clone for AcquireAction
impl Clone for AcquireAction
impl Copy for AcquireAction
Source§impl Debug for AcquireAction
impl Debug for AcquireAction
impl Eq for AcquireAction
Source§impl PartialEq for AcquireAction
impl PartialEq for AcquireAction
impl StructuralPartialEq for AcquireAction
Auto Trait Implementations§
impl Freeze for AcquireAction
impl RefUnwindSafe for AcquireAction
impl Send for AcquireAction
impl Sync for AcquireAction
impl Unpin for AcquireAction
impl UnsafeUnpin for AcquireAction
impl UnwindSafe for AcquireAction
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.