pub struct PrefetchConfig {
pub enabled: bool,
pub prefetch_count: usize,
pub max_concurrent: usize,
pub bandwidth_limit: Option<usize>,
pub memory_limit: usize,
pub pattern_prediction: bool,
pub adaptive_sizing: bool,
pub min_confidence: f64,
}Expand description
Prefetch configuration
Fields§
§enabled: boolEnable prefetching
prefetch_count: usizeNumber of items to prefetch ahead
max_concurrent: usizeMaximum concurrent prefetch operations
bandwidth_limit: Option<usize>Bandwidth limit in bytes per second (None = unlimited)
memory_limit: usizeMemory limit in bytes for prefetch buffer
pattern_prediction: boolEnable pattern-based prediction
adaptive_sizing: boolEnable adaptive buffer sizing
min_confidence: f64Minimum confidence threshold for prefetching
Implementations§
Source§impl PrefetchConfig
impl PrefetchConfig
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Enables or disables prefetching
Sourcepub fn with_prefetch_count(self, count: usize) -> Self
pub fn with_prefetch_count(self, count: usize) -> Self
Sets the prefetch count
Sourcepub fn with_max_concurrent(self, max: usize) -> Self
pub fn with_max_concurrent(self, max: usize) -> Self
Sets the maximum concurrent prefetch operations
Sourcepub fn with_bandwidth_limit(self, limit: usize) -> Self
pub fn with_bandwidth_limit(self, limit: usize) -> Self
Sets the bandwidth limit
Sourcepub fn with_memory_limit(self, limit: usize) -> Self
pub fn with_memory_limit(self, limit: usize) -> Self
Sets the memory limit
Sourcepub fn with_adaptive_sizing(self, enabled: bool) -> Self
pub fn with_adaptive_sizing(self, enabled: bool) -> Self
Enables adaptive sizing
Trait Implementations§
Source§impl Clone for PrefetchConfig
impl Clone for PrefetchConfig
Source§fn clone(&self) -> PrefetchConfig
fn clone(&self) -> PrefetchConfig
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 PrefetchConfig
impl Debug for PrefetchConfig
Auto Trait Implementations§
impl Freeze for PrefetchConfig
impl RefUnwindSafe for PrefetchConfig
impl Send for PrefetchConfig
impl Sync for PrefetchConfig
impl Unpin for PrefetchConfig
impl UnsafeUnpin for PrefetchConfig
impl UnwindSafe for PrefetchConfig
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