pub struct FastPathCacheConfig {
pub enabled: bool,
pub max_blocks_per_class: usize,
pub cached_size_classes: &'static [usize],
}Expand description
Configuration for fast-path caches.
Fields§
§enabled: boolWhether fast-path caching is enabled.
max_blocks_per_class: usizeMaximum blocks to retain in each size class cache.
cached_size_classes: &'static [usize]Size classes to cache (by index).
Trait Implementations§
Source§impl Default for FastPathCacheConfig
impl Default for FastPathCacheConfig
Source§fn default() -> FastPathCacheConfig
fn default() -> FastPathCacheConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FastPathCacheConfig
impl RefUnwindSafe for FastPathCacheConfig
impl Send for FastPathCacheConfig
impl Sync for FastPathCacheConfig
impl Unpin for FastPathCacheConfig
impl UnsafeUnpin for FastPathCacheConfig
impl UnwindSafe for FastPathCacheConfig
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