pub struct StreamConfig {Show 13 fields
pub max_bandwidth_mbps: f64,
pub latency_threshold_ms: f64,
pub max_error_rate: f64,
pub cpu_usage_threshold: f64,
pub memory_usage_threshold_percent: f64,
pub max_connection_count: usize,
pub default_prioritization_strategy: PrioritizationStrategy,
pub enable_adaptive_priority: bool,
pub buffer_size_kb: usize,
pub enable_compression: bool,
pub compression_level: u8,
pub session_timeout_seconds: u64,
pub frame_timeout_ms: u64,
}Expand description
Static configuration for streaming operations This should be immutable after creation and can be shared across sessions
Fields§
§max_bandwidth_mbps: f64Maximum bandwidth allocation in Mbps
latency_threshold_ms: f64Latency threshold for priority adjustment in milliseconds
max_error_rate: f64Maximum acceptable error rate (0.0-1.0)
cpu_usage_threshold: f64CPU usage threshold for throttling (0.0-1.0)
memory_usage_threshold_percent: f64Memory usage threshold for throttling (0.0-100.0)
max_connection_count: usizeMaximum concurrent connections per session
default_prioritization_strategy: PrioritizationStrategyDefault priority strategy
enable_adaptive_priority: boolEnable adaptive priority adjustment
buffer_size_kb: usizeBuffer size configuration
enable_compression: boolCompression settings
compression_level: u8§session_timeout_seconds: u64Timeout configurations
frame_timeout_ms: u64Trait 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
Source§impl Default for StreamConfig
impl Default for StreamConfig
Source§impl<'de> Deserialize<'de> for StreamConfig
impl<'de> Deserialize<'de> for StreamConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin 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