pub struct PressureEvent {
pub at_ms: f64,
pub kind: PressureKind,
pub request_id: Uuid,
pub state_before: PressureState,
pub state_after: PressureState,
pub request_active_blocks_before: usize,
pub logical_available_blocks_before: Option<usize>,
pub required_blocks_before: Option<usize>,
}Expand description
One scheduler-owned KV pressure action emitted with pass-start effects.
The Replayer may attach topology/pool identity and correlate a later
Admission for the same request. The engine always produces this
lightweight fact; capture policy belongs to the consuming runtime.
Fields§
§at_ms: f64Modeled timestamp at which the scheduler took the action.
kind: PressureKindScheduler-specific pressure action.
request_id: UuidRequest removed from the running set.
state_before: PressureStateScheduler/KV state immediately before the action.
state_after: PressureStateScheduler/KV state immediately after the action.
request_active_blocks_before: usizeBlocks owned by this request before it was preempted or retracted.
logical_available_blocks_before: Option<usize>Logically available blocks used by the SGLang retraction decision.
required_blocks_before: Option<usize>Blocks required by the SGLang retraction decision.
Trait Implementations§
Source§impl Clone for PressureEvent
impl Clone for PressureEvent
Source§fn clone(&self) -> PressureEvent
fn clone(&self) -> PressureEvent
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 moreSource§impl Debug for PressureEvent
impl Debug for PressureEvent
Source§impl<'de> Deserialize<'de> for PressureEvent
impl<'de> Deserialize<'de> for PressureEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PressureEvent
impl PartialEq for PressureEvent
Source§impl Serialize for PressureEvent
impl Serialize for PressureEvent
impl StructuralPartialEq for PressureEvent
Auto Trait Implementations§
impl Freeze for PressureEvent
impl RefUnwindSafe for PressureEvent
impl Send for PressureEvent
impl Sync for PressureEvent
impl Unpin for PressureEvent
impl UnsafeUnpin for PressureEvent
impl UnwindSafe for PressureEvent
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