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