pub struct ResultCacheConfig {
pub ttl: Duration,
pub max_disk_bytes: u64,
pub preview_lines: usize,
}Expand description
Configuration for the result cache.
Fields§
§ttl: DurationHow long entries survive before expiration.
max_disk_bytes: u64Maximum total disk usage across all entries.
preview_lines: usizeNumber of preview lines to include in the context summary.
Trait Implementations§
Source§impl Clone for ResultCacheConfig
impl Clone for ResultCacheConfig
Source§fn clone(&self) -> ResultCacheConfig
fn clone(&self) -> ResultCacheConfig
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 ResultCacheConfig
impl Debug for ResultCacheConfig
Auto Trait Implementations§
impl Freeze for ResultCacheConfig
impl RefUnwindSafe for ResultCacheConfig
impl Send for ResultCacheConfig
impl Sync for ResultCacheConfig
impl Unpin for ResultCacheConfig
impl UnsafeUnpin for ResultCacheConfig
impl UnwindSafe for ResultCacheConfig
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