pub struct ServerHealth {
pub healthy: bool,
pub last_check: Option<u64>,
pub context_size: Option<u64>,
pub message: Option<String>,
}Expand description
Health status of a running server.
Fields§
§healthy: boolWhether the server is responding to health checks.
last_check: Option<u64>Unix timestamp (seconds) of the last successful health check.
context_size: Option<u64>Context size being used by the server.
message: Option<String>Optional status message.
Implementations§
Source§impl ServerHealth
impl ServerHealth
Trait Implementations§
Source§impl Clone for ServerHealth
impl Clone for ServerHealth
Source§fn clone(&self) -> ServerHealth
fn clone(&self) -> ServerHealth
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerHealth
impl Debug for ServerHealth
Source§impl<'de> Deserialize<'de> for ServerHealth
impl<'de> Deserialize<'de> for ServerHealth
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 ServerHealth
impl RefUnwindSafe for ServerHealth
impl Send for ServerHealth
impl Sync for ServerHealth
impl Unpin for ServerHealth
impl UnwindSafe for ServerHealth
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