pub enum CacheLifetime {
Limited(Duration),
Permanent,
}Expand description
How long the conversation’s prompt cache stays warm.
This is what an idle gap is measured against: reassembly rewrites the cacheable prefix, so it is only free once the provider’s copy can no longer be read anyway.
Variants§
Limited(Duration)
The cache expires after this long without a hit.
Permanent
The cache never expires; rewriting the prefix is never free.
Trait Implementations§
Source§impl Clone for CacheLifetime
impl Clone for CacheLifetime
impl Copy for CacheLifetime
Source§impl Debug for CacheLifetime
impl Debug for CacheLifetime
impl Eq for CacheLifetime
Source§impl PartialEq for CacheLifetime
impl PartialEq for CacheLifetime
impl StructuralPartialEq for CacheLifetime
Auto Trait Implementations§
impl Forget for CacheLifetime
impl Freeze for CacheLifetime
impl Move for CacheLifetime
impl RefUnwindSafe for CacheLifetime
impl Send for CacheLifetime
impl Sync for CacheLifetime
impl Unpin for CacheLifetime
impl UnsafeUnpin for CacheLifetime
impl UnwindSafe for CacheLifetime
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.