pub struct ExecutionTimerConfig {
pub limit: Duration,
pub check_interval: NonZeroU32,
}Expand description
Public configuration for the cooperative execution time limiter.
The limiter reads this struct to determine how often it should check for wall-clock overruns and
what deadline to enforce. Engines without a configuration skip time checks; when a configuration
is present, it normally pairs a concrete deadline with a small NonZeroU32 interval so
interpreter loops amortize their clock reads without skipping checks for long stretches of
repetitive work. The process-wide fallback installed via set_fallback_execution_timer_config
supplies this configuration when an engine lacks its own override.
Fields§
§limit: DurationMaximum allowed wall-clock duration.
check_interval: NonZeroU32Number of work units between time checks (minimum 1).
Trait Implementations§
Source§impl Clone for ExecutionTimerConfig
impl Clone for ExecutionTimerConfig
Source§fn clone(&self) -> ExecutionTimerConfig
fn clone(&self) -> ExecutionTimerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionTimerConfig
impl Debug for ExecutionTimerConfig
Source§impl PartialEq for ExecutionTimerConfig
impl PartialEq for ExecutionTimerConfig
impl Copy for ExecutionTimerConfig
impl Eq for ExecutionTimerConfig
impl StructuralPartialEq for ExecutionTimerConfig
Auto Trait Implementations§
impl Freeze for ExecutionTimerConfig
impl RefUnwindSafe for ExecutionTimerConfig
impl Send for ExecutionTimerConfig
impl Sync for ExecutionTimerConfig
impl Unpin for ExecutionTimerConfig
impl UnwindSafe for ExecutionTimerConfig
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