pub enum SynthesisEvent {
Admission {
accepted: bool,
},
ResourceAdmission {
admitted: bool,
predicted_max_frames: u64,
predicted_peak_bytes: u64,
budget_bytes: u64,
},
StageStarted {
stage: EngineStage,
},
StageFinished {
stage: EngineStage,
elapsed: Duration,
},
FrameProgress {
frame: u64,
},
TextPrepared {
token_count: usize,
normalization: NormalizationTraceSummary,
},
PacketEmitted {
frame_count: u8,
sample_count: usize,
},
Health {
event: HealthEvent,
},
}Expand description
Lifecycle information delivered to a caller-owned observer.
Variants§
Admission
Concurrency admission outcome before model work begins.
ResourceAdmission
Resource admission outcome: the predicted peak memory for this utterance.
Distinct from SynthesisEvent::Admission, which is the one-live-synthesis lease. Emitted
for accepted and rejected requests alike, so a capacity problem is visible in the event
stream rather than only in an error string.
Fields
StageStarted
A CPU stage started.
Fields
§
stage: EngineStageStageFinished
A CPU stage completed within its budget.
FrameProgress
A talker-frame boundary was reached.
TextPrepared
A caller explicitly requested a privacy-safe normalization trace summary.
Fields
§
normalization: NormalizationTraceSummaryNo raw or rewritten text is included in this observer payload.
PacketEmitted
A packet entered the PCM stream.
Health
A health event for the current request.
Fields
§
event: HealthEventTrait Implementations§
Source§impl Clone for SynthesisEvent
impl Clone for SynthesisEvent
Source§fn clone(&self) -> SynthesisEvent
fn clone(&self) -> SynthesisEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SynthesisEvent
impl Debug for SynthesisEvent
impl Eq for SynthesisEvent
Source§impl PartialEq for SynthesisEvent
impl PartialEq for SynthesisEvent
impl StructuralPartialEq for SynthesisEvent
Auto Trait Implementations§
impl Freeze for SynthesisEvent
impl RefUnwindSafe for SynthesisEvent
impl Send for SynthesisEvent
impl Sync for SynthesisEvent
impl Unpin for SynthesisEvent
impl UnsafeUnpin for SynthesisEvent
impl UnwindSafe for SynthesisEvent
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<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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).