pub struct LruConfig {
pub unused_threshold: DurationConfig,
pub max_models: Option<u32>,
pub min_free_space_bytes: Option<u64>,
}Expand description
Configuration for LRU eviction policy
Fields§
§unused_threshold: DurationConfigTime threshold before an unused model is eligible for removal
max_models: Option<u32>Maximum number of models to keep (None = no limit based on count)
min_free_space_bytes: Option<u64>Minimum free disk space to maintain (in bytes, None = no disk space checks)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LruConfig
impl<'de> Deserialize<'de> for LruConfig
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 LruConfig
impl RefUnwindSafe for LruConfig
impl Send for LruConfig
impl Sync for LruConfig
impl Unpin for LruConfig
impl UnwindSafe for LruConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request