Struct nydus_api::http::FileCacheConfig
source · [−]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
sourceimpl 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
sourceimpl Clone for FileCacheConfig
impl Clone for FileCacheConfig
sourcefn clone(&self) -> FileCacheConfig
fn clone(&self) -> FileCacheConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FileCacheConfig
impl Debug for FileCacheConfig
sourceimpl<'de> Deserialize<'de> for FileCacheConfig
impl<'de> Deserialize<'de> for FileCacheConfig
sourcefn 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
sourceimpl Serialize for FileCacheConfig
impl Serialize for FileCacheConfig
Auto Trait Implementations
impl RefUnwindSafe for FileCacheConfig
impl Send for FileCacheConfig
impl Sync for FileCacheConfig
impl Unpin for FileCacheConfig
impl UnwindSafe for FileCacheConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more