pub struct DeliveryConfig {
pub audio: Delivery,
pub text: Delivery,
pub transcript: Delivery,
pub thought: Delivery,
pub vad: Delivery,
pub phase: Delivery,
}Expand description
Per-event-class delivery (backpressure) policy for the fast lane.
Each fast-lane event class carries its own Delivery policy. The
Default impl sets every class to Delivery::Lossless, which makes
the whole feature behavior-preserving: with the default config the router
uses the same send().await path it always has. Callers opt into lossy
behavior per class via the builder setters.
Fields§
§audio: DeliveryPolicy for raw PCM audio frames.
text: DeliveryPolicy for incremental text deltas (and text-complete frames).
transcript: DeliveryPolicy for input/output transcript frames (fast-lane callback copy only; control-lane accumulation is unaffected and always lossless).
thought: DeliveryPolicy for thought-summary frames.
vad: DeliveryPolicy for VAD start/end frames.
phase: DeliveryPolicy for phase-changed frames.
Implementations§
Source§impl DeliveryConfig
impl DeliveryConfig
Sourcepub fn lossless() -> Self
pub fn lossless() -> Self
A config with every class set to Delivery::Lossless (same as
Default).
Sourcepub fn transcript(self, d: Delivery) -> Self
pub fn transcript(self, d: Delivery) -> Self
Set the transcript policy.
Trait Implementations§
Source§impl Clone for DeliveryConfig
impl Clone for DeliveryConfig
Source§fn clone(&self) -> DeliveryConfig
fn clone(&self) -> DeliveryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more