pub struct ContinuumConfig {
pub enabled: bool,
pub default_ratio: f64,
pub transition_mode: TransitionMode,
pub time_schedule: Option<TimeSchedule>,
pub merge_strategy: MergeStrategy,
pub routes: Vec<ContinuumRule>,
pub groups: HashMap<String, f64>,
pub field_mixing: Option<FieldRealityConfig>,
pub cross_protocol_state: Option<CrossProtocolStateConfig>,
}Expand description
Configuration for Reality Continuum
Fields§
§enabled: boolWhether the continuum feature is enabled
default_ratio: f64Default blend ratio (0.0 = 100% mock, 1.0 = 100% real)
transition_mode: TransitionModeTransition mode for blend ratio progression
time_schedule: Option<TimeSchedule>Time schedule for time-based transitions (optional)
merge_strategy: MergeStrategyMerge strategy for blending responses
routes: Vec<ContinuumRule>Per-route blend ratio overrides
groups: HashMap<String, f64>Group-level blend ratio overrides
field_mixing: Option<FieldRealityConfig>Field-level reality mixing configuration
cross_protocol_state: Option<CrossProtocolStateConfig>Cross-protocol state sharing configuration
Implementations§
Source§impl ContinuumConfig
impl ContinuumConfig
Sourcepub fn with_default_ratio(self, ratio: f64) -> Self
pub fn with_default_ratio(self, ratio: f64) -> Self
Set the default blend ratio
Sourcepub fn with_transition_mode(self, mode: TransitionMode) -> Self
pub fn with_transition_mode(self, mode: TransitionMode) -> Self
Set the transition mode
Sourcepub fn with_time_schedule(self, schedule: TimeSchedule) -> Self
pub fn with_time_schedule(self, schedule: TimeSchedule) -> Self
Set the time schedule
Sourcepub fn with_merge_strategy(self, strategy: MergeStrategy) -> Self
pub fn with_merge_strategy(self, strategy: MergeStrategy) -> Self
Set the merge strategy
Sourcepub fn add_route(self, rule: ContinuumRule) -> Self
pub fn add_route(self, rule: ContinuumRule) -> Self
Add a route-specific rule
Sourcepub fn set_group_ratio(self, group: String, ratio: f64) -> Self
pub fn set_group_ratio(self, group: String, ratio: f64) -> Self
Set a group-level blend ratio
Sourcepub fn with_cross_protocol_state(self, config: CrossProtocolStateConfig) -> Self
pub fn with_cross_protocol_state(self, config: CrossProtocolStateConfig) -> Self
Set cross-protocol state configuration
Trait Implementations§
Source§impl Clone for ContinuumConfig
impl Clone for ContinuumConfig
Source§fn clone(&self) -> ContinuumConfig
fn clone(&self) -> ContinuumConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContinuumConfig
impl Debug for ContinuumConfig
Source§impl Default for ContinuumConfig
impl Default for ContinuumConfig
Source§impl<'de> Deserialize<'de> for ContinuumConfig
impl<'de> Deserialize<'de> for ContinuumConfig
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
Auto Trait Implementations§
impl Freeze for ContinuumConfig
impl RefUnwindSafe for ContinuumConfig
impl Send for ContinuumConfig
impl Sync for ContinuumConfig
impl Unpin for ContinuumConfig
impl UnsafeUnpin for ContinuumConfig
impl UnwindSafe for ContinuumConfig
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