Struct nydus_api::config::CacheConfigV2
source · pub struct CacheConfigV2 {
pub cache_type: String,
pub cache_compressed: bool,
pub cache_validate: bool,
pub prefetch: PrefetchConfigV2,
pub file_cache: Option<FileCacheConfig>,
pub fs_cache: Option<FsCacheConfig>,
}Expand description
Configuration information for blob cache manager.
Fields§
§cache_type: StringType of blob cache: “blobcache”, “fscache” or “dummy”
cache_compressed: boolWhether the data from the cache is compressed, not used anymore.
cache_validate: boolWhether to validate data read from the cache.
prefetch: PrefetchConfigV2Configuration for blob level prefetch.
file_cache: Option<FileCacheConfig>Configuration information for file cache
fs_cache: Option<FsCacheConfig>Configuration information for fscache
Implementations§
source§impl CacheConfigV2
impl CacheConfigV2
sourcepub fn get_filecache_config(&self) -> Result<&FileCacheConfig>
pub fn get_filecache_config(&self) -> Result<&FileCacheConfig>
Get configuration information for file cache.
sourcepub fn get_fscache_config(&self) -> Result<&FsCacheConfig>
pub fn get_fscache_config(&self) -> Result<&FsCacheConfig>
Get configuration information for fscache.
Trait Implementations§
source§impl Clone for CacheConfigV2
impl Clone for CacheConfigV2
source§fn clone(&self) -> CacheConfigV2
fn clone(&self) -> CacheConfigV2
Returns a copy 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 CacheConfigV2
impl Debug for CacheConfigV2
source§impl Default for CacheConfigV2
impl Default for CacheConfigV2
source§fn default() -> CacheConfigV2
fn default() -> CacheConfigV2
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CacheConfigV2
impl<'de> Deserialize<'de> for CacheConfigV2
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CacheConfigV2> for CacheConfigV2
impl PartialEq<CacheConfigV2> for CacheConfigV2
source§fn eq(&self, other: &CacheConfigV2) -> bool
fn eq(&self, other: &CacheConfigV2) -> bool
This method tests for
self and other values to be equal, and is used
by ==.