pub struct NetworkOptimizationConfig {
pub adaptive_bitrate: bool,
pub monitor_network: bool,
pub bandwidth_prediction: bool,
pub fec_enabled: bool,
pub network_buffer_size: Duration,
pub congestion_control: CongestionControlAlgorithm,
}Expand description
Network optimization configuration
Fields§
§adaptive_bitrate: boolEnable adaptive bitrate streaming
monitor_network: boolEnable network condition monitoring
bandwidth_prediction: boolEnable bandwidth prediction
fec_enabled: boolEnable forward error correction
network_buffer_size: DurationNetwork buffer size in milliseconds
congestion_control: CongestionControlAlgorithmCongestion control algorithm
Implementations§
Source§impl NetworkOptimizationConfig
impl NetworkOptimizationConfig
Sourcepub fn latency_optimized() -> Self
pub fn latency_optimized() -> Self
Create latency-optimized network configuration
Sourcepub fn quality_optimized() -> Self
pub fn quality_optimized() -> Self
Create quality-optimized network configuration
Sourcepub fn bandwidth_efficient() -> Self
pub fn bandwidth_efficient() -> Self
Create bandwidth-efficient network configuration
Sourcepub fn validate(&self) -> Result<(), RealTimeError>
pub fn validate(&self) -> Result<(), RealTimeError>
Validate network optimization configuration
Trait Implementations§
Source§impl Clone for NetworkOptimizationConfig
impl Clone for NetworkOptimizationConfig
Source§fn clone(&self) -> NetworkOptimizationConfig
fn clone(&self) -> NetworkOptimizationConfig
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 NetworkOptimizationConfig
impl Debug for NetworkOptimizationConfig
Source§impl Default for NetworkOptimizationConfig
impl Default for NetworkOptimizationConfig
Source§impl<'de> Deserialize<'de> for NetworkOptimizationConfig
impl<'de> Deserialize<'de> for NetworkOptimizationConfig
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 NetworkOptimizationConfig
impl RefUnwindSafe for NetworkOptimizationConfig
impl Send for NetworkOptimizationConfig
impl Sync for NetworkOptimizationConfig
impl Unpin for NetworkOptimizationConfig
impl UnwindSafe for NetworkOptimizationConfig
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> 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