pub struct CacheWarmth { /* private fields */ }Expand description
A shared view of one agent’s prompt-cache entry.
Clones observe the same entry: a handle taken from
Agent::cache_warmth before a later request
sees that request refresh the entry.
Implementations§
Source§impl CacheWarmth
impl CacheWarmth
Sourcepub fn state(&self) -> CacheState
pub fn state(&self) -> CacheState
The entry’s state now. CacheState::Cold before the first request.
Trait Implementations§
Source§impl Clone for CacheWarmth
impl Clone for CacheWarmth
Auto Trait Implementations§
impl !RefUnwindSafe for CacheWarmth
impl !UnwindSafe for CacheWarmth
impl Forget for CacheWarmth
impl Freeze for CacheWarmth
impl Move for CacheWarmth
impl Send for CacheWarmth
impl Sync for CacheWarmth
impl Unpin for CacheWarmth
impl UnsafeUnpin for CacheWarmth
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