Skip to main content

FluxConfig

Struct FluxConfig 

Source
pub struct FluxConfig {
Show 18 fields pub initial_temperature: f32, pub min_temperature: f32, pub max_temperature: f32, pub decay_rate: f32, pub pressure_scale: f32, pub tick_interval: Duration, pub sample_rate: f32, pub max_candidates: usize, pub alpha_recency: f32, pub beta_freq: f32, pub gamma_importance: f32, pub delta_cost: f32, pub sigmoid_k: f32, pub importance_decay: f32, pub max_concurrent_migrations: usize, pub restore_concurrency: usize, pub restore_backoff_ms: u64, pub restore_max_retries: u32,
}
Expand description

波动引擎配置 —— 冷热调度的热力学参数

Fields§

§initial_temperature: f32

初始温度

§min_temperature: f32

最低温度(防止系统完全停止流动)

§max_temperature: f32

最高温度

§decay_rate: f32

温度衰减率(每tick乘以此值)

§pressure_scale: f32

系统压力时温度放大比

§tick_interval: Duration

Tick间隔

§sample_rate: f32

候选采样率(防止每tick扫描全表)

§max_candidates: usize

每次最多处理的候选数

§alpha_recency: f32

评分权重:时效性

§beta_freq: f32

评分权重:访问频率

§gamma_importance: f32

评分权重:用户标注重要性

§delta_cost: f32

评分权重:迁移代价(负向)

§sigmoid_k: f32

sigmoid陡峭度

§importance_decay: f32

重要性每tick衰减率

§max_concurrent_migrations: usize

最大并发迁移数

§restore_concurrency: usize

恢复队列并发数

§restore_backoff_ms: u64

恢复初始退避(毫秒)

§restore_max_retries: u32

恢复最大重试次数

Trait Implementations§

Source§

impl Clone for FluxConfig

Source§

fn clone(&self) -> FluxConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FluxConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FluxConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FluxConfig

Source§

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 Serialize for FluxConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,