Struct nydus_api::config::FileCacheConfig
source · pub struct FileCacheConfig {
pub work_dir: String,
pub disable_indexed_map: bool,
}Expand description
Configuration information for file cache.
Fields§
§work_dir: StringWorking directory to store state and cached files.
disable_indexed_map: boolDeprecated: disable index mapping, keep it as false when possible.
Implementations§
source§impl FileCacheConfig
impl FileCacheConfig
sourcepub fn get_work_dir(&self) -> Result<&str>
pub fn get_work_dir(&self) -> Result<&str>
Get the working directory.
Trait Implementations§
source§impl Clone for FileCacheConfig
impl Clone for FileCacheConfig
source§fn clone(&self) -> FileCacheConfig
fn clone(&self) -> FileCacheConfig
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 FileCacheConfig
impl Debug for FileCacheConfig
source§impl Default for FileCacheConfig
impl Default for FileCacheConfig
source§fn default() -> FileCacheConfig
fn default() -> FileCacheConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FileCacheConfig
impl<'de> Deserialize<'de> for FileCacheConfig
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<FileCacheConfig> for FileCacheConfig
impl PartialEq<FileCacheConfig> for FileCacheConfig
source§fn eq(&self, other: &FileCacheConfig) -> bool
fn eq(&self, other: &FileCacheConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.