pub struct StreamConfig {
pub chunk_size: usize,
pub sample_rate: u32,
pub target_latency_ms: f32,
pub buffer_capacity: usize,
pub channel_buffer_size: usize,
pub max_concurrent_streams: usize,
pub adaptive_buffering: bool,
pub quality_vs_latency: f32,
pub enable_error_recovery: bool,
pub stream_timeout_secs: u64,
}Expand description
Configuration for stream processing with buffering and latency settings
Fields§
§chunk_size: usizeChunk size for processing
sample_rate: u32Sample rate
target_latency_ms: f32Target latency in milliseconds
buffer_capacity: usizeBuffer capacity for accumulation
channel_buffer_size: usizeChannel buffer size for async communication
max_concurrent_streams: usizeMaximum concurrent streams
adaptive_buffering: boolEnable adaptive buffering
quality_vs_latency: f32Quality vs latency trade-off (0.0 = lowest latency, 1.0 = highest quality)
enable_error_recovery: boolEnable error recovery
stream_timeout_secs: u64Stream timeout in seconds
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamConfig
impl Debug for StreamConfig
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
impl UnwindSafe for StreamConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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