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 moreSource§impl Debug for DeliveryConfig
impl Debug for DeliveryConfig
Source§impl Default for DeliveryConfig
impl Default for DeliveryConfig
Source§impl PartialEq for DeliveryConfig
impl PartialEq for DeliveryConfig
impl Copy for DeliveryConfig
impl Eq for DeliveryConfig
impl StructuralPartialEq for DeliveryConfig
Auto Trait Implementations§
impl Freeze for DeliveryConfig
impl RefUnwindSafe for DeliveryConfig
impl Send for DeliveryConfig
impl Sync for DeliveryConfig
impl Unpin for DeliveryConfig
impl UnwindSafe for DeliveryConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].