pub struct Stats {Show 21 fields
pub ready: bool,
pub queued_requests: usize,
pub active_requests: usize,
pub completed_requests: u64,
pub failed_requests: u64,
pub rejected_requests: u64,
pub generated_tokens: u64,
pub prompt_tokens: u64,
pub cached_tokens: u64,
pub prefill_seconds: f64,
pub decode_seconds: f64,
pub current: Option<Current>,
pub cache: CacheStats,
pub memory: MemoryStats,
pub http_address: Option<String>,
pub cancelled_requests: u64,
pub active_state_reserved_bytes: usize,
pub prefill_chunk_tokens: usize,
pub sessions: SessionStats,
pub active: Vec<ActiveRequest>,
pub(crate) activity: ExpertActivity,
}Fields§
§ready: bool§queued_requests: usize§active_requests: usize§completed_requests: u64§failed_requests: u64§rejected_requests: u64§generated_tokens: u64§prompt_tokens: u64§cached_tokens: u64§prefill_seconds: f64§decode_seconds: f64§current: Option<Current>§cache: CacheStats§memory: MemoryStats§http_address: Option<String>§cancelled_requests: u64§active_state_reserved_bytes: usize§prefill_chunk_tokens: usizeContended prefill chunk size the worker is currently pacing toward.
sessions: SessionStats§active: Vec<ActiveRequest>§activity: ExpertActivityTrait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more