pub struct ServingObservation {
pub received_at: Instant,
pub effective_prefill_tokens: usize,
pub active_prefill_tokens: Option<usize>,
}Expand description
Serving observations for one candidate model. Never populated from caller headers.
Fields§
§received_at: InstantLocal receipt time; avoids relying on clocks synchronized with the serving system.
effective_prefill_tokens: usizeWork remaining after the serving system applies cache credits.
active_prefill_tokens: Option<usize>Current tracked prefill work, when available.
Trait Implementations§
Source§impl Clone for ServingObservation
impl Clone for ServingObservation
Source§fn clone(&self) -> ServingObservation
fn clone(&self) -> ServingObservation
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 moreAuto Trait Implementations§
impl Freeze for ServingObservation
impl RefUnwindSafe for ServingObservation
impl Send for ServingObservation
impl Sync for ServingObservation
impl Unpin for ServingObservation
impl UnsafeUnpin for ServingObservation
impl UnwindSafe for ServingObservation
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