pub struct ServiceCachePolicy {
pub evict_on_fetch: bool,
pub max_bytes: u64,
pub max_concurrent_fills: usize,
pub max_artifact_bytes: u64,
pub max_inflight_bytes: u64,
pub min_free_bytes: u64,
}Expand description
Resource limits for a server-owned cache; ordinary library gets are unchanged.
Fields§
§evict_on_fetch: boolEnable maintenance after fills drain. Defaults to false.
max_bytes: u64Quiescent unique-blob budget; zero makes this a staging-only cache.
max_concurrent_fills: usizeMaximum number of simultaneous cold fills.
max_artifact_bytes: u64Maximum bytes materialized by a fill, including its retries.
max_inflight_bytes: u64Aggregate reservations, retained until maintenance finishes.
min_free_bytes: u64Required unreserved filesystem free space at admission.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceCachePolicy
impl Clone for ServiceCachePolicy
Source§impl Debug for ServiceCachePolicy
impl Debug for ServiceCachePolicy
Source§impl<'de> Deserialize<'de> for ServiceCachePolicy
impl<'de> Deserialize<'de> for ServiceCachePolicy
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
Auto Trait Implementations§
impl Freeze for ServiceCachePolicy
impl RefUnwindSafe for ServiceCachePolicy
impl Send for ServiceCachePolicy
impl Sync for ServiceCachePolicy
impl Unpin for ServiceCachePolicy
impl UnsafeUnpin for ServiceCachePolicy
impl UnwindSafe for ServiceCachePolicy
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