pub enum DisplaySync {
Block,
Recent,
Tear,
}Expand description
Mechanism used to acquire frames and display them on screen.
Variants§
Block
Block until the oldest frame is released.
Recent
Display the most recently presented frame.
Falls back to Tear if unsupported.
Tear
Tear the currently displayed frame when presenting a new one.
Trait Implementations§
Source§impl Clone for DisplaySync
impl Clone for DisplaySync
Source§fn clone(&self) -> DisplaySync
fn clone(&self) -> DisplaySync
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplaySync
impl Debug for DisplaySync
Source§impl Default for DisplaySync
impl Default for DisplaySync
Source§fn default() -> DisplaySync
fn default() -> DisplaySync
Returns the “default value” for a type. Read more
Source§impl Hash for DisplaySync
impl Hash for DisplaySync
Source§impl PartialEq for DisplaySync
impl PartialEq for DisplaySync
impl Copy for DisplaySync
impl Eq for DisplaySync
impl StructuralPartialEq for DisplaySync
Auto Trait Implementations§
impl Freeze for DisplaySync
impl RefUnwindSafe for DisplaySync
impl Send for DisplaySync
impl Sync for DisplaySync
impl Unpin for DisplaySync
impl UnwindSafe for DisplaySync
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.