pub enum CacheResult {
Dedup {
inline_ref: String,
token_cost: u32,
},
Fresh {
output: CompressedContent,
},
}Expand description
Outcome of a cache lookup in CacheManager.
Variants§
Dedup
Previously seen content — returns a short inline reference (~13 tokens).
Fields
Fresh
Content not seen before — full compression result.
Fields
§
output: CompressedContentAuto Trait Implementations§
impl Freeze for CacheResult
impl RefUnwindSafe for CacheResult
impl Send for CacheResult
impl Sync for CacheResult
impl Unpin for CacheResult
impl UnsafeUnpin for CacheResult
impl UnwindSafe for CacheResult
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