pub struct CatchUp {
pub max_steps_per_frame: u32,
pub max_debt_steps: u32,
}Expand description
Bounded catch-up policy for FixedClock::with_catch_up.
Each frame runs at most max_steps_per_frame steps. Whole steps still due
after that budget are carried to later frames up to max_debt_steps; the
rest is discarded and reported in FixedClock::dropped_dt. With
max_debt_steps: 0 a stall runs one full budget and the next normal
frame runs normally; a larger debt replays more of the stall, at up to a
full budget per frame, until it is repaid.
Fields§
§max_steps_per_frame: u32Most fixed steps one frame may run (at least 1).
max_debt_steps: u32Whole steps carried past a frame’s budget; the excess is discarded.
Trait Implementations§
impl Copy for CatchUp
impl Eq for CatchUp
impl StructuralPartialEq for CatchUp
Auto Trait Implementations§
impl Freeze for CatchUp
impl RefUnwindSafe for CatchUp
impl Send for CatchUp
impl Sync for CatchUp
impl Unpin for CatchUp
impl UnsafeUnpin for CatchUp
impl UnwindSafe for CatchUp
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