pub enum FrameDecision {
Run,
Skip,
}Expand description
The outcome of FrameGate::decide: whether the shell should run this
frame’s rebuild/layout/paint/encode/present passes, or skip them entirely.
Variants§
Run
Run the frame: at least one input signalled a change (or the gate is in its resume warmup, or the gate is disabled).
Skip
Skip the frame: nothing changed. The continuous Choreographer/
CADisplayLink loop keeps re-posting callbacks — only frame
production stops (see the module docs).
Implementations§
Source§impl FrameDecision
impl FrameDecision
Sourcepub fn is_run(self) -> bool
pub fn is_run(self) -> bool
Whether this decision is FrameDecision::Run.
Sourcepub fn is_skip(self) -> bool
pub fn is_skip(self) -> bool
Whether this decision is FrameDecision::Skip.
Trait Implementations§
Source§impl Clone for FrameDecision
impl Clone for FrameDecision
impl Copy for FrameDecision
Source§impl Debug for FrameDecision
impl Debug for FrameDecision
impl Eq for FrameDecision
Source§impl PartialEq for FrameDecision
impl PartialEq for FrameDecision
impl StructuralPartialEq for FrameDecision
Auto Trait Implementations§
impl Freeze for FrameDecision
impl RefUnwindSafe for FrameDecision
impl Send for FrameDecision
impl Sync for FrameDecision
impl Unpin for FrameDecision
impl UnsafeUnpin for FrameDecision
impl UnwindSafe for FrameDecision
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.