pub struct RuntimeFrame<'runtime> { /* private fields */ }Expand description
One scoped runtime frame containing its timing plan and immutable input snapshot.
Dropping a frame that schedules at least one fixed update clears pressed/released transitions and scroll samples while preserving held controls. A zero-update render frame retains those transients for the next simulation-bearing frame, so one-shot input cannot fall between ticks.
Implementations§
Source§impl RuntimeFrame<'_>
impl RuntimeFrame<'_>
Sourcepub const fn plan(&self) -> FramePlan
pub const fn plan(&self) -> FramePlan
Returns the fixed/variable timing work and render interpolation for this frame.
Sourcepub const fn schedule(&self) -> FrameSchedule
pub const fn schedule(&self) -> FrameSchedule
Returns how this frame’s delta was derived: paced onto the observed display cadence, or the wall-clock fallback while presentation feedback is missing or stale.
Sourcepub const fn input(&self) -> &InputSnapshot
pub const fn input(&self) -> &InputSnapshot
Returns held state and transitions accumulated since the last simulation-bearing frame.
Trait Implementations§
Source§impl<'runtime> Debug for RuntimeFrame<'runtime>
impl<'runtime> Debug for RuntimeFrame<'runtime>
Source§impl Drop for RuntimeFrame<'_>
impl Drop for RuntimeFrame<'_>
Auto Trait Implementations§
impl<'runtime> !UnwindSafe for RuntimeFrame<'runtime>
impl<'runtime> Freeze for RuntimeFrame<'runtime>
impl<'runtime> RefUnwindSafe for RuntimeFrame<'runtime>
impl<'runtime> Send for RuntimeFrame<'runtime>
impl<'runtime> Sync for RuntimeFrame<'runtime>
impl<'runtime> Unpin for RuntimeFrame<'runtime>
impl<'runtime> UnsafeUnpin for RuntimeFrame<'runtime>
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