optirs-core 0.3.1

OptiRS core optimization algorithms and utilities
Documentation
//! # 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,
                },
            ],
        }
    }
}