#[repr(C)]pub struct retro_throttle_state {
pub mode: c_uint,
pub rate: f32,
}
Fields§
§mode: c_uint
The current throttling mode. Should be one of the values above.
rate: f32
How many times per second the frontend aims to call retro_run. Depending on the mode, it can be 0 if there is no known fixed rate. This won’t be accurate if the total processing time of the core and the frontend is longer than what is available for one frame.
Trait Implementations§
Source§impl Clone for retro_throttle_state
impl Clone for retro_throttle_state
Source§fn clone(&self) -> retro_throttle_state
fn clone(&self) -> retro_throttle_state
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for retro_throttle_state
impl Debug for retro_throttle_state
impl Copy for retro_throttle_state
Auto Trait Implementations§
impl Freeze for retro_throttle_state
impl RefUnwindSafe for retro_throttle_state
impl Send for retro_throttle_state
impl Sync for retro_throttle_state
impl Unpin for retro_throttle_state
impl UnwindSafe for retro_throttle_state
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