pub struct WorkerState {
pub id: String,
pub locality_domain: String,
pub hbm_capacity_bytes: u64,
pub hbm_used_bytes: u64,
pub cpu_capacity_bytes: u64,
pub cpu_used_bytes: u64,
pub running_decodes: u32,
pub queued_prefill_tokens: u32,
}Fields§
§id: String§locality_domain: String§hbm_capacity_bytes: u64§hbm_used_bytes: u64§cpu_capacity_bytes: u64§cpu_used_bytes: u64§running_decodes: u32§queued_prefill_tokens: u32Implementations§
Trait Implementations§
Source§impl Clone for WorkerState
impl Clone for WorkerState
Source§fn clone(&self) -> WorkerState
fn clone(&self) -> WorkerState
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 WorkerState
impl Debug for WorkerState
Source§impl<'de> Deserialize<'de> for WorkerState
impl<'de> Deserialize<'de> for WorkerState
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 WorkerState
Source§impl PartialEq for WorkerState
impl PartialEq for WorkerState
Source§fn eq(&self, other: &WorkerState) -> bool
fn eq(&self, other: &WorkerState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerState
impl Serialize for WorkerState
impl StructuralPartialEq for WorkerState
Auto Trait Implementations§
impl Freeze for WorkerState
impl RefUnwindSafe for WorkerState
impl Send for WorkerState
impl Sync for WorkerState
impl Unpin for WorkerState
impl UnsafeUnpin for WorkerState
impl UnwindSafe for WorkerState
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