pub struct CacheManagerConfig {
pub cache_dir: Option<String>,
pub verify_integrity: bool,
pub enable_compression: bool,
pub max_cache_size: Option<u64>,
}
Expand description
Cache manager configuration
Fields§
§cache_dir: Option<String>
§verify_integrity: bool
§enable_compression: bool
§max_cache_size: Option<u64>
Trait Implementations§
Source§impl Clone for CacheManagerConfig
impl Clone for CacheManagerConfig
Source§fn clone(&self) -> CacheManagerConfig
fn clone(&self) -> CacheManagerConfig
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 Configurable<CacheManagerConfig> for CacheManager
impl Configurable<CacheManagerConfig> for CacheManager
Source§fn get_config(&self) -> &CacheManagerConfig
fn get_config(&self) -> &CacheManagerConfig
Get current configuration
Source§fn validate_config(config: &CacheManagerConfig) -> Result<()>
fn validate_config(config: &CacheManagerConfig) -> Result<()>
Validate configuration
Source§impl Debug for CacheManagerConfig
impl Debug for CacheManagerConfig
Auto Trait Implementations§
impl Freeze for CacheManagerConfig
impl RefUnwindSafe for CacheManagerConfig
impl Send for CacheManagerConfig
impl Sync for CacheManagerConfig
impl Unpin for CacheManagerConfig
impl UnwindSafe for CacheManagerConfig
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