pub struct CacheEntry {
pub ref_id: String,
pub backend: Box<dyn CacheBackend>,
pub tool_name: String,
pub created_at: Instant,
pub expires_at: Instant,
}Expand description
A single cached tool result.
Fields§
§ref_id: StringUnique reference ID (e.g. ref_0001).
backend: Box<dyn CacheBackend>The backend that stores and operates on this result.
tool_name: StringWhich tool produced this result.
created_at: InstantWhen the entry was created.
expires_at: InstantWhen the entry expires and can be evicted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheEntry
impl !RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl !UnwindSafe for CacheEntry
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