pub struct SchedulerConfig { /* private fields */ }Expand description
Configuration parameters for the fixed-timestep scheduler.
Implementations§
Source§impl SchedulerConfig
impl SchedulerConfig
pub fn get_fixed_timestep(&self) -> f64
pub fn get_mut_fixed_timestep(&mut self) -> &mut f64
pub fn set_fixed_timestep(&mut self, val: f64) -> &mut Self
pub fn get_max_frame_time(&self) -> f64
pub fn get_mut_max_frame_time(&mut self) -> &mut f64
pub fn set_max_frame_time(&mut self, val: f64) -> &mut Self
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
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 SchedulerConfig
Source§impl Debug for SchedulerConfig
impl Debug for SchedulerConfig
Source§impl Default for SchedulerConfig
Implements default configuration and state initialization for scheduler types.
impl Default for SchedulerConfig
Implements default configuration and state initialization for scheduler types.
Source§fn default() -> SchedulerConfig
fn default() -> SchedulerConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SchedulerConfig
impl PartialEq for SchedulerConfig
Source§fn eq(&self, other: &SchedulerConfig) -> bool
fn eq(&self, other: &SchedulerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SchedulerConfig
impl PartialOrd for SchedulerConfig
impl StructuralPartialEq for SchedulerConfig
Auto Trait Implementations§
impl Freeze for SchedulerConfig
impl RefUnwindSafe for SchedulerConfig
impl Send for SchedulerConfig
impl Sync for SchedulerConfig
impl Unpin for SchedulerConfig
impl UnsafeUnpin for SchedulerConfig
impl UnwindSafe for SchedulerConfig
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