Struct nydus_api::http::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
sourceimpl 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
sourceimpl Clone for FsCacheConfig
impl Clone for FsCacheConfig
sourcefn clone(&self) -> FsCacheConfig
fn clone(&self) -> FsCacheConfig
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 FsCacheConfig
impl Debug for FsCacheConfig
sourceimpl<'de> Deserialize<'de> for FsCacheConfig
impl<'de> Deserialize<'de> for FsCacheConfig
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 FsCacheConfig
impl Serialize for FsCacheConfig
Auto Trait Implementations
impl RefUnwindSafe for FsCacheConfig
impl Send for FsCacheConfig
impl Sync for FsCacheConfig
impl Unpin for FsCacheConfig
impl UnwindSafe for FsCacheConfig
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