pub struct StageRequestEpoch {
pub request_id: u64,
pub session_id: u64,
pub checkpoint_generation: i32,
pub prompt_token_count: i32,
pub decode_step: i32,
}Fields§
§request_id: u64§session_id: u64§checkpoint_generation: i32§prompt_token_count: i32§decode_step: i32Implementations§
Source§impl StageRequestEpoch
impl StageRequestEpoch
pub fn same_flow(self, other: Self) -> bool
Sourcepub fn is_stale_for(self, current: Self) -> bool
pub fn is_stale_for(self, current: Self) -> bool
Returns true when this epoch is strictly older than current within the
same request/session flow.
Epochs from different flows are never comparable. For matching flows, staleness uses lexicographic ordering of checkpoint generation, prompt token count, and decode step, so a newer checkpoint dominates prompt and decode progress, and prompt progress dominates decode progress.
Trait Implementations§
Source§impl Clone for StageRequestEpoch
impl Clone for StageRequestEpoch
Source§fn clone(&self) -> StageRequestEpoch
fn clone(&self) -> StageRequestEpoch
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 moreimpl Copy for StageRequestEpoch
Source§impl Debug for StageRequestEpoch
impl Debug for StageRequestEpoch
impl Eq for StageRequestEpoch
Source§impl PartialEq for StageRequestEpoch
impl PartialEq for StageRequestEpoch
impl StructuralPartialEq for StageRequestEpoch
Auto Trait Implementations§
impl Freeze for StageRequestEpoch
impl RefUnwindSafe for StageRequestEpoch
impl Send for StageRequestEpoch
impl Sync for StageRequestEpoch
impl Unpin for StageRequestEpoch
impl UnsafeUnpin for StageRequestEpoch
impl UnwindSafe for StageRequestEpoch
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