pub struct PacingDecision { /* private fields */ }Expand description
Result returned by FramePacingController::evaluate for a single scheduling trigger.
Implementations§
Source§impl PacingDecision
impl PacingDecision
pub fn get_action(&self) -> PacingAction
pub fn get_mut_action(&mut self) -> &mut PacingAction
pub fn set_action(&mut self, val: PacingAction) -> &mut Self
pub fn get_sim_dt_secs(&self) -> f32
pub fn get_mut_sim_dt_secs(&mut self) -> &mut f32
pub fn set_sim_dt_secs(&mut self, val: f32) -> &mut Self
pub fn get_timestamp_ns(&self) -> u64
pub fn get_mut_timestamp_ns(&mut self) -> &mut u64
pub fn set_timestamp_ns(&mut self, val: u64) -> &mut Self
pub fn get_input_age_ms(&self) -> f32
pub fn get_mut_input_age_ms(&mut self) -> &mut f32
pub fn set_input_age_ms(&mut self, val: f32) -> &mut Self
pub fn get_should_render(&self) -> bool
pub fn get_mut_should_render(&mut self) -> &mut bool
pub fn set_should_render(&mut self, val: bool) -> &mut Self
pub fn get_should_step_sim(&self) -> bool
pub fn get_mut_should_step_sim(&mut self) -> &mut bool
pub fn set_should_step_sim(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for PacingDecision
impl Clone for PacingDecision
impl Copy for PacingDecision
Source§impl Debug for PacingDecision
impl Debug for PacingDecision
Source§impl Default for PacingDecision
impl Default for PacingDecision
Source§impl PartialEq for PacingDecision
impl PartialEq for PacingDecision
impl StructuralPartialEq for PacingDecision
Auto Trait Implementations§
impl Forget for PacingDecision
impl Freeze for PacingDecision
impl Move for PacingDecision
impl RefUnwindSafe for PacingDecision
impl Send for PacingDecision
impl Sync for PacingDecision
impl Unpin for PacingDecision
impl UnsafeUnpin for PacingDecision
impl UnwindSafe for PacingDecision
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