pub enum ToolKind {
FileRead,
FileMutate,
Other,
}Expand description
Classification used to drive mutation-based invalidation.
Variants§
FileRead
Reads a file. Cached responses may become stale if the underlying file
is mutated and are invalidated by DedupCache::invalidate_file.
FileMutate
Mutates a file. Does not itself need to be cached (responses are small
and rarely repeated), but triggers invalidation of matching
FileRead entries.
Other
Any other tool (Bash, MCP, Agent, Web…). No implicit cross-tool invalidation.
Implementations§
Trait Implementations§
impl Copy for ToolKind
impl Eq for ToolKind
impl StructuralPartialEq for ToolKind
Auto Trait Implementations§
impl Freeze for ToolKind
impl RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl UnsafeUnpin for ToolKind
impl UnwindSafe for ToolKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.