pub struct WorkerInfo {Show 14 fields
pub name: String,
pub url: String,
pub gpu: String,
pub gpu_count: u32,
pub ready_gpu_slots: u32,
pub healthy: bool,
pub queue_depth: u64,
pub pending_cost: u64,
pub inflight_batches: u64,
pub loaded_models: Vec<String>,
pub memory_used_bytes: u64,
pub memory_total_bytes: u64,
pub bundle: Option<String>,
pub bundle_config_hash: Option<String>,
}Expand description
One worker as the gateway sees it.
Fields§
§name: String§url: String§gpu: String§gpu_count: u32§ready_gpu_slots: u32§healthy: bool§queue_depth: u64§pending_cost: u64§inflight_batches: u64§loaded_models: Vec<String>§memory_used_bytes: u64§memory_total_bytes: u64§bundle: Option<String>§bundle_config_hash: Option<String>Trait Implementations§
Source§impl Clone for WorkerInfo
impl Clone for WorkerInfo
Source§fn clone(&self) -> WorkerInfo
fn clone(&self) -> WorkerInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkerInfo
impl Debug for WorkerInfo
Source§impl Default for WorkerInfo
impl Default for WorkerInfo
Source§fn default() -> WorkerInfo
fn default() -> WorkerInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerInfo
impl<'de> Deserialize<'de> for WorkerInfo
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
impl Eq for WorkerInfo
Source§impl PartialEq for WorkerInfo
impl PartialEq for WorkerInfo
Source§impl Serialize for WorkerInfo
impl Serialize for WorkerInfo
impl StructuralPartialEq for WorkerInfo
Auto Trait Implementations§
impl Freeze for WorkerInfo
impl RefUnwindSafe for WorkerInfo
impl Send for WorkerInfo
impl Sync for WorkerInfo
impl Unpin for WorkerInfo
impl UnsafeUnpin for WorkerInfo
impl UnwindSafe for WorkerInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.