pub struct ServerSummary {
pub id: String,
pub model_id: String,
pub model_name: String,
pub port: u16,
pub healthy: Option<bool>,
}Expand description
Summary of a running server for event emission.
This is a lightweight representation used by the ServerEvents port
to decouple lifecycle logic from transport-specific implementations.
Fields§
§id: StringUnique server instance ID.
model_id: StringModel ID being served.
model_name: StringModel name.
port: u16Port the server is listening on.
healthy: Option<bool>Health status (None = unknown/pending).
Implementations§
Source§impl ServerSummary
impl ServerSummary
Sourcepub fn parsed_model_id(&self) -> Option<u32>
pub fn parsed_model_id(&self) -> Option<u32>
Parse the model_id string as a u32.
Returns None if parsing fails.
Pure helper: adapters decide how to handle/log parse failures.
Trait Implementations§
Source§impl Clone for ServerSummary
impl Clone for ServerSummary
Source§fn clone(&self) -> ServerSummary
fn clone(&self) -> ServerSummary
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 ServerSummary
impl Debug for ServerSummary
Source§impl<'de> Deserialize<'de> for ServerSummary
impl<'de> Deserialize<'de> for ServerSummary
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 ServerSummary
impl RefUnwindSafe for ServerSummary
impl Send for ServerSummary
impl Sync for ServerSummary
impl Unpin for ServerSummary
impl UnwindSafe for ServerSummary
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