pub struct ComponentStatus {
pub scheduler: ComponentHealth,
pub model_executor: ComponentHealth,
pub tokenizer: ComponentHealth,
pub kv_cache: ComponentHealth,
pub memory_manager: ComponentHealth,
pub backend: ComponentHealth,
}Expand description
Aggregated component health map
Fields§
§scheduler: ComponentHealth§model_executor: ComponentHealth§tokenizer: ComponentHealth§kv_cache: ComponentHealth§memory_manager: ComponentHealth§backend: ComponentHealthImplementations§
Source§impl ComponentStatus
impl ComponentStatus
Sourcepub fn healthy() -> ComponentStatus
pub fn healthy() -> ComponentStatus
Construct a fully healthy component status snapshot
Sourcepub fn entries(&self) -> [&ComponentHealth; 6]
pub fn entries(&self) -> [&ComponentHealth; 6]
Iterate over component entries for aggregation helpers
Trait Implementations§
Source§impl Clone for ComponentStatus
impl Clone for ComponentStatus
Source§fn clone(&self) -> ComponentStatus
fn clone(&self) -> ComponentStatus
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 ComponentStatus
impl Debug for ComponentStatus
Source§impl<'de> Deserialize<'de> for ComponentStatus
impl<'de> Deserialize<'de> for ComponentStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ComponentStatus
impl Serialize for ComponentStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ComponentStatus
impl RefUnwindSafe for ComponentStatus
impl Send for ComponentStatus
impl Sync for ComponentStatus
impl Unpin for ComponentStatus
impl UnsafeUnpin for ComponentStatus
impl UnwindSafe for ComponentStatus
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