pub enum CachedEntry {
Generate(Box<GenerateResult>),
Stream(Vec<StreamPart>),
}Expand description
A cached call result.
Mirrors the two model call shapes; Stream keeps the full part sequence
so a hit can be replayed deterministically. Generate is boxed to keep
the enum size balanced.
Variants§
Generate(Box<GenerateResult>)
Cached LanguageModel::do_generate result.
Stream(Vec<StreamPart>)
Cached LanguageModel::do_stream part sequence.
Trait Implementations§
Source§impl Clone for CachedEntry
impl Clone for CachedEntry
Source§fn clone(&self) -> CachedEntry
fn clone(&self) -> CachedEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CachedEntry
impl RefUnwindSafe for CachedEntry
impl Send for CachedEntry
impl Sync for CachedEntry
impl Unpin for CachedEntry
impl UnsafeUnpin for CachedEntry
impl UnwindSafe for CachedEntry
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