pub struct RuntimePolicy {
pub execution_mode: ExecutionMode,
pub session_mode: SessionMode,
pub telemetry_level: TelemetryLevel,
pub rate_limit_rps: f64,
pub max_retries: u32,
pub backoff_base_ms: u64,
pub enable_warmup: bool,
pub enforce_webrtc_proxy_only: bool,
pub sticky_session_ttl_secs: Option<u64>,
pub required_stygian_features: Vec<String>,
pub config_hints: BTreeMap<String, String>,
pub risk_score: f64,
}Expand description
Concrete runtime policy that can be mapped to Stygian config.
Fields§
§execution_mode: ExecutionModeRecommended execution mode.
session_mode: SessionModeRecommended session mode.
telemetry_level: TelemetryLevelRecommended telemetry level.
rate_limit_rps: f64Requests per second budget.
max_retries: u32Max retries per request.
backoff_base_ms: u64Baseline backoff in milliseconds.
enable_warmup: boolWhether warm-up navigation/requests are recommended.
enforce_webrtc_proxy_only: boolWhether browser context should block WebRTC non-proxied paths.
sticky_session_ttl_secs: Option<u64>Suggested sticky-session TTL in seconds (if relevant).
required_stygian_features: Vec<String>Required Stygian features/components.
config_hints: BTreeMap<String, String>Additional hints mapped by key.
risk_score: f64Composite risk score in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for RuntimePolicy
impl Clone for RuntimePolicy
Source§fn clone(&self) -> RuntimePolicy
fn clone(&self) -> RuntimePolicy
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 RuntimePolicy
impl Debug for RuntimePolicy
Source§impl<'de> Deserialize<'de> for RuntimePolicy
impl<'de> Deserialize<'de> for RuntimePolicy
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
Source§impl PartialEq for RuntimePolicy
impl PartialEq for RuntimePolicy
Source§impl Serialize for RuntimePolicy
impl Serialize for RuntimePolicy
impl StructuralPartialEq for RuntimePolicy
Auto Trait Implementations§
impl Freeze for RuntimePolicy
impl RefUnwindSafe for RuntimePolicy
impl Send for RuntimePolicy
impl Sync for RuntimePolicy
impl Unpin for RuntimePolicy
impl UnsafeUnpin for RuntimePolicy
impl UnwindSafe for RuntimePolicy
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