pub enum PrefixRestoreDecision<'a> {
NoReusableEntry,
SequenceCapacityNotReady {
candidate_prefix_tokens: usize,
capacity: &'a ExecutorExecutionCapacityDeferral,
},
RequestStateNotReady {
candidate_prefix_tokens: usize,
request_state: &'a ExecutorRequestStateDeferral,
},
NativeRestoreSkipped {
candidate_prefix_tokens: usize,
},
Restored {
candidate_prefix_tokens: usize,
},
}Expand description
Contains lengths and typed resource evidence, never prompt/token contents.
Variants§
Trait Implementations§
Source§impl<'a> Debug for PrefixRestoreDecision<'a>
impl<'a> Debug for PrefixRestoreDecision<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PrefixRestoreDecision<'a>
impl<'a> !UnwindSafe for PrefixRestoreDecision<'a>
impl<'a> Freeze for PrefixRestoreDecision<'a>
impl<'a> Send for PrefixRestoreDecision<'a>
impl<'a> Sync for PrefixRestoreDecision<'a>
impl<'a> Unpin for PrefixRestoreDecision<'a>
impl<'a> UnsafeUnpin for PrefixRestoreDecision<'a>
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