pub struct FileCacheConfig {
pub work_dir: String,
pub disable_indexed_map: bool,
pub enable_encryption: bool,
pub enable_convergent_encryption: bool,
pub encryption_key: String,
}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.
enable_encryption: boolEnable encryption data written to the cache file.
enable_convergent_encryption: boolEnable convergent encryption for chunk deduplication.
encryption_key: StringKey for data encryption, a heximal representation of [u8; 32].
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 duplicate 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 for FileCacheConfig
impl PartialEq for FileCacheConfig
Source§impl Serialize for FileCacheConfig
impl Serialize for FileCacheConfig
impl Eq for FileCacheConfig
impl StructuralPartialEq for FileCacheConfig
Auto Trait Implementations§
impl Freeze for FileCacheConfig
impl RefUnwindSafe for FileCacheConfig
impl Send for FileCacheConfig
impl Sync for FileCacheConfig
impl Unpin for FileCacheConfig
impl UnwindSafe for FileCacheConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more