pub struct PreemptionState {
pub kv_cache_checkpoint: Vec<u8>,
pub tokens_processed: usize,
pub generation_state: HashMap<String, Value>,
}Expand description
State saved during preemption
Fields§
§kv_cache_checkpoint: Vec<u8>KV cache checkpoint
tokens_processed: usizeNumber of tokens processed
generation_state: HashMap<String, Value>Generation state
Trait Implementations§
Source§impl Clone for PreemptionState
impl Clone for PreemptionState
Source§fn clone(&self) -> PreemptionState
fn clone(&self) -> PreemptionState
Returns a duplicate of the value. Read more
1.0.0 · 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 PreemptionState
impl RefUnwindSafe for PreemptionState
impl Send for PreemptionState
impl Sync for PreemptionState
impl Unpin for PreemptionState
impl UnsafeUnpin for PreemptionState
impl UnwindSafe for PreemptionState
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