pub enum DrawOutcome {
Success,
Occluded,
Timeout,
}Expand description
Result of a single rendering attempt. WGPU-backed renderers can report Occluded or
Timeout instead of rendering a frame; in those cases the caller should re-arm a
redraw rather than wait for the next external event.
Variants§
Trait Implementations§
Source§impl Clone for DrawOutcome
impl Clone for DrawOutcome
Source§fn clone(&self) -> DrawOutcome
fn clone(&self) -> DrawOutcome
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 DrawOutcome
Source§impl Debug for DrawOutcome
impl Debug for DrawOutcome
impl Eq for DrawOutcome
Source§impl PartialEq for DrawOutcome
impl PartialEq for DrawOutcome
Source§fn eq(&self, other: &DrawOutcome) -> bool
fn eq(&self, other: &DrawOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DrawOutcome
Auto Trait Implementations§
impl Freeze for DrawOutcome
impl RefUnwindSafe for DrawOutcome
impl Send for DrawOutcome
impl Sync for DrawOutcome
impl Unpin for DrawOutcome
impl UnsafeUnpin for DrawOutcome
impl UnwindSafe for DrawOutcome
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.