pub struct PreheatingConfig {
pub check_interval_seconds: u64,
pub preheat_threshold_seconds: u64,
pub enable_tenant_preheating: bool,
pub max_concurrent_preheat: usize,
}Expand description
Token预热配置
Fields§
§check_interval_seconds: u64检查间隔(秒)
preheat_threshold_seconds: u64预热阈值(秒)- 当token剩余时间少于此值时开始预热
enable_tenant_preheating: bool是否启用tenant token预热
max_concurrent_preheat: usize最大并发预热任务数
Trait Implementations§
Source§impl Clone for PreheatingConfig
impl Clone for PreheatingConfig
Source§fn clone(&self) -> PreheatingConfig
fn clone(&self) -> PreheatingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreheatingConfig
impl Debug for PreheatingConfig
Auto Trait Implementations§
impl Freeze for PreheatingConfig
impl RefUnwindSafe for PreheatingConfig
impl Send for PreheatingConfig
impl Sync for PreheatingConfig
impl Unpin for PreheatingConfig
impl UnwindSafe for PreheatingConfig
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