pub struct FramePacerOptions {
pub maximum_frames_per_second: Option<u32>,
}Expand description
Options for creating a frame pacer.
See mln_frame_pacer_options in the
C API reference.
Fields§
§maximum_frames_per_second: Option<u32>The most frames per second that the pacer demands, greater than zero. The pacer skips display refreshes to stay within it. By default, it can demand frames at every refresh.
Trait Implementations§
Source§impl Clone for FramePacerOptions
impl Clone for FramePacerOptions
Source§fn clone(&self) -> FramePacerOptions
fn clone(&self) -> FramePacerOptions
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 FramePacerOptions
Source§impl Debug for FramePacerOptions
impl Debug for FramePacerOptions
Source§impl Default for FramePacerOptions
impl Default for FramePacerOptions
Source§fn default() -> FramePacerOptions
fn default() -> FramePacerOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FramePacerOptions
impl PartialEq for FramePacerOptions
impl StructuralPartialEq for FramePacerOptions
Auto Trait Implementations§
impl Freeze for FramePacerOptions
impl RefUnwindSafe for FramePacerOptions
impl Send for FramePacerOptions
impl Sync for FramePacerOptions
impl Unpin for FramePacerOptions
impl UnsafeUnpin for FramePacerOptions
impl UnwindSafe for FramePacerOptions
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more