Skip to main content

optirs_core/streaming/
advancedqosconfig_traits.rs

1//! # AdvancedQoSConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `AdvancedQoSConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::{
12    AdvancedQoSConfig, QoSMetric, ResourceReservationStrategy, ServiceLevelObjective,
13};
14
15impl Default for AdvancedQoSConfig {
16    fn default() -> Self {
17        Self {
18            strict_latency_bounds: true,
19            quality_degradation_tolerance: 0.05,
20            resource_reservation: ResourceReservationStrategy::Adaptive,
21            adaptive_adjustment: true,
22            priority_scheduling: true,
23            service_level_objectives: vec![
24                ServiceLevelObjective {
25                    metric: QoSMetric::Latency,
26                    target_value: 10.0,
27                    tolerance: 0.1,
28                },
29                ServiceLevelObjective {
30                    metric: QoSMetric::Throughput,
31                    target_value: 1000.0,
32                    tolerance: 0.05,
33                },
34            ],
35        }
36    }
37}