pub(crate) struct AdaptiveWarmupConfig {
pub enabled: bool,
pub quiet_secs: u64,
pub max_shapes_per_hour: u32,
}Expand description
Configuration for the adaptive background warmup task.
Fields§
§enabled: boolWhether adaptive warmup is enabled. When false, spawn_adaptive_warmup
is a no-op.
quiet_secs: u64Seconds of continuous idle (zero queue depth) required before the task
fires a warmup shape. Prevents warmup interference with live inference.
When 0, the quiet-window check is skipped entirely.
max_shapes_per_hour: u32Maximum number of shapes the task will compile per rolling hour. Acts as
a rate-limiter to prevent runaway warmup loops on high-traffic deployments.
When 0, adaptive warmup is enabled but no shapes will be compiled — a
warning is emitted at startup.
Auto Trait Implementations§
impl Freeze for AdaptiveWarmupConfig
impl RefUnwindSafe for AdaptiveWarmupConfig
impl Send for AdaptiveWarmupConfig
impl Sync for AdaptiveWarmupConfig
impl Unpin for AdaptiveWarmupConfig
impl UnsafeUnpin for AdaptiveWarmupConfig
impl UnwindSafe for AdaptiveWarmupConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more