pub struct AutoRefreshConfig {
pub enabled: bool,
pub min_hits_per_minute: f64,
pub check_interval: Duration,
pub max_concurrent_refreshes: usize,
pub cleanup_interval: Duration,
pub hit_rate_window: Duration,
}Expand description
Configuration for auto-refresh functionality.
Fields§
§enabled: boolEnable auto-refresh (default: false)
min_hits_per_minute: f64Minimum hits per minute to qualify for auto-refresh
check_interval: DurationHow often to check for refresh candidates (default: 10s)
max_concurrent_refreshes: usizeMaximum concurrent auto-refreshes (default: 10)
cleanup_interval: DurationCleanup interval for stale tracking data (default: 60s)
hit_rate_window: DurationTime window for calculating hit rates (default: 60s)
Implementations§
Trait Implementations§
Source§impl Clone for AutoRefreshConfig
impl Clone for AutoRefreshConfig
Source§fn clone(&self) -> AutoRefreshConfig
fn clone(&self) -> AutoRefreshConfig
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 AutoRefreshConfig
impl Debug for AutoRefreshConfig
Auto Trait Implementations§
impl Freeze for AutoRefreshConfig
impl RefUnwindSafe for AutoRefreshConfig
impl Send for AutoRefreshConfig
impl Sync for AutoRefreshConfig
impl Unpin for AutoRefreshConfig
impl UnwindSafe for AutoRefreshConfig
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