pub struct ServerStatus {
pub version: &'static str,
pub uptime_secs: u64,
pub model_loaded: bool,
pub requests_total: u64,
pub tokens_generated: u64,
pub active_connections: u64,
pub memory_rss_bytes: Option<u64>,
}Expand description
Live server status snapshot.
Fields§
§version: &'static strCrate version string (from CARGO_PKG_VERSION).
uptime_secs: u64Seconds elapsed since the server started.
model_loaded: boolWhether the inference model has been loaded.
requests_total: u64Cumulative requests received since last reset.
tokens_generated: u64Cumulative tokens generated since last reset.
active_connections: u64Number of requests currently in flight.
memory_rss_bytes: Option<u64>Process resident-set-size in bytes, if available.
Trait Implementations§
Source§impl Debug for ServerStatus
impl Debug for ServerStatus
Auto Trait Implementations§
impl Freeze for ServerStatus
impl RefUnwindSafe for ServerStatus
impl Send for ServerStatus
impl Sync for ServerStatus
impl Unpin for ServerStatus
impl UnsafeUnpin for ServerStatus
impl UnwindSafe for ServerStatus
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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