pub struct MooncakeRow {
pub request_id: Option<String>,
pub session_id: Option<String>,
pub input_length: Option<usize>,
pub output_length: Option<usize>,
pub output_token_ids: Option<Vec<u32>>,
pub hash_ids: Option<Vec<u64>>,
pub timestamp: Option<f64>,
pub delay: Option<f64>,
pub priority: Option<i32>,
pub strict_priority: Option<u32>,
pub policy_class: Option<String>,
}Expand description
One row of a Mooncake replay trace.
timestamp is an absolute request arrival offset in milliseconds. Rows
without a session_id are independent request arrivals. Rows that share a
session_id are interpreted as closed-loop turns; later turns use delay
or timestamp deltas relative to the previous row in that session.
The row type is Serialize + Deserialize so the same definition serves
producers and consumers. Field-level aliases on deserialization accept the
upstream Mooncake field names (input_tokens, output_tokens,
created_time, delay_ms) without requiring producers to emit them.
Fields§
§request_id: Option<String>§session_id: Option<String>§input_length: Option<usize>§output_length: Option<usize>§output_token_ids: Option<Vec<u32>>§hash_ids: Option<Vec<u64>>§timestamp: Option<f64>§delay: Option<f64>§priority: Option<i32>§strict_priority: Option<u32>§policy_class: Option<String>Trait Implementations§
Source§impl Clone for MooncakeRow
impl Clone for MooncakeRow
Source§fn clone(&self) -> MooncakeRow
fn clone(&self) -> MooncakeRow
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 MooncakeRow
impl Debug for MooncakeRow
Source§impl Default for MooncakeRow
impl Default for MooncakeRow
Source§fn default() -> MooncakeRow
fn default() -> MooncakeRow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MooncakeRow
impl<'de> Deserialize<'de> for MooncakeRow
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
Auto Trait Implementations§
impl Freeze for MooncakeRow
impl RefUnwindSafe for MooncakeRow
impl Send for MooncakeRow
impl Sync for MooncakeRow
impl Unpin for MooncakeRow
impl UnsafeUnpin for MooncakeRow
impl UnwindSafe for MooncakeRow
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