pub enum FramePacing {
Timer,
Display,
}Expand description
How a window’s animation frames are timed.
Variants§
Timer
The runtime times animation frames itself, up to 120 per second. Used by headless hosts and by windows that are not presenting.
Display
The platform starts each animation frame when the display is ready
for one, with crate::Runtime::begin_animation_frame, stamped with
the time the frame is expected on screen.
Trait Implementations§
Source§impl Clone for FramePacing
impl Clone for FramePacing
impl Copy for FramePacing
Source§impl Debug for FramePacing
impl Debug for FramePacing
Source§impl Default for FramePacing
impl Default for FramePacing
impl Eq for FramePacing
Source§impl PartialEq for FramePacing
impl PartialEq for FramePacing
impl StructuralPartialEq for FramePacing
Auto Trait Implementations§
impl Forget for FramePacing
impl Freeze for FramePacing
impl Move for FramePacing
impl RefUnwindSafe for FramePacing
impl Send for FramePacing
impl Sync for FramePacing
impl Unpin for FramePacing
impl UnsafeUnpin for FramePacing
impl UnwindSafe for FramePacing
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