pub struct EngineConfig {
pub stream_queue_capacity: usize,
pub synthesis_stage_budget: Duration,
pub synthesis_frame_budget: Duration,
pub enroll_stage_budget: Duration,
pub admission: AdmissionPolicy,
}Expand description
Fixed limits for one engine instance.
Fields§
§stream_queue_capacity: usizeCapacity for each independent PCM and event queue.
synthesis_stage_budget: DurationWall time allowed for one synthesis stage before the per-frame allowance is added.
This is the startup grace: prefill, cache warmup, and the first frame. It is not the whole
stage’s ceiling — see Self::synthesis_frame_budget, which extends the deadline as frames
are actually produced. A generator that never yields its first frame still trips at exactly
this value, so this remains the knob that catches a hang.
synthesis_frame_budget: DurationWall time added to the synthesis deadline for each frame already generated.
This is what makes the budget scale with the length of the utterance instead of refusing
long ones. Zero is rejected by Self::validate: it would silently restore the flat
whole-stage deadline this field exists to replace.
enroll_stage_budget: DurationMaximum wall time for one enrollment CPU stage.
admission: AdmissionPolicyPredicted-peak-memory policy applied to every synthesis request.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
impl Eq for EngineConfig
Source§impl PartialEq for EngineConfig
impl PartialEq for EngineConfig
impl StructuralPartialEq for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.