pub struct CacheTuning {
pub content_cache_size_mb: Option<i64>,
pub metadata_cache_size_mb: Option<i64>,
}Expand description
Per-connection kopia cache budgets, applied at repository connect/create
time (--content-cache-size-mb / --metadata-cache-size-mb). Each mover pod
connects fresh, so these size that pod’s local cache. None leaves kopia’s
default. Serializable so it rides the mover work spec from controller to mover.
Fields§
§content_cache_size_mb: Option<i64>--content-cache-size-mb: content (data) cache budget in MiB.
metadata_cache_size_mb: Option<i64>--metadata-cache-size-mb: metadata cache budget in MiB.
Implementations§
Trait Implementations§
Source§impl Clone for CacheTuning
impl Clone for CacheTuning
Source§fn clone(&self) -> CacheTuning
fn clone(&self) -> CacheTuning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheTuning
impl Debug for CacheTuning
Source§impl Default for CacheTuning
impl Default for CacheTuning
Source§fn default() -> CacheTuning
fn default() -> CacheTuning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CacheTuning
impl<'de> Deserialize<'de> for CacheTuning
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 CacheTuning
impl PartialEq for CacheTuning
Source§fn eq(&self, other: &CacheTuning) -> bool
fn eq(&self, other: &CacheTuning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CacheTuning
impl Serialize for CacheTuning
impl Copy for CacheTuning
impl Eq for CacheTuning
impl StructuralPartialEq for CacheTuning
Auto Trait Implementations§
impl Freeze for CacheTuning
impl RefUnwindSafe for CacheTuning
impl Send for CacheTuning
impl Sync for CacheTuning
impl Unpin for CacheTuning
impl UnsafeUnpin for CacheTuning
impl UnwindSafe for CacheTuning
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