optirs_core/streaming/
advancedqosconfig_traits.rs1use 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}