Struct nydus_api::config::FsCacheConfig
source · pub struct FsCacheConfig {
pub work_dir: String,
}Expand description
Configuration information for fscache.
Fields§
§work_dir: StringWorking directory to store state and cached files.
Implementations§
source§impl FsCacheConfig
impl FsCacheConfig
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 FsCacheConfig
impl Clone for FsCacheConfig
source§fn clone(&self) -> FsCacheConfig
fn clone(&self) -> FsCacheConfig
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 FsCacheConfig
impl Debug for FsCacheConfig
source§impl Default for FsCacheConfig
impl Default for FsCacheConfig
source§fn default() -> FsCacheConfig
fn default() -> FsCacheConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FsCacheConfig
impl<'de> Deserialize<'de> for FsCacheConfig
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<FsCacheConfig> for FsCacheConfig
impl PartialEq<FsCacheConfig> for FsCacheConfig
source§fn eq(&self, other: &FsCacheConfig) -> bool
fn eq(&self, other: &FsCacheConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.