pub enum Framerate {
Multiplier(f32),
Exact(u32),
Unlimited,
}Expand description
Framerate limit.
Variants§
Multiplier(f32)
Sets framerate to a multiple of the current display’s refresh rate.
Exact(u32)
Sets framerate to an exact value.
Unlimited
No limits. Use this when you are going to implement your own limiting.
Auto Trait Implementations§
impl Freeze for Framerate
impl RefUnwindSafe for Framerate
impl Send for Framerate
impl Sync for Framerate
impl Unpin for Framerate
impl UnwindSafe for Framerate
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