pub struct WorkerLoadInfo {
pub worker: String,
pub worker_type: Option<String>,
pub load: isize,
}Expand description
Individual worker load information
Fields§
§worker: StringWorker URL
worker_type: Option<String>Worker type (regular, prefill, decode)
load: isizeCurrent load (-1 indicates failure to fetch)
Trait Implementations§
Source§impl Clone for WorkerLoadInfo
impl Clone for WorkerLoadInfo
Source§fn clone(&self) -> WorkerLoadInfo
fn clone(&self) -> WorkerLoadInfo
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 WorkerLoadInfo
impl Debug for WorkerLoadInfo
Source§impl<'de> Deserialize<'de> for WorkerLoadInfo
impl<'de> Deserialize<'de> for WorkerLoadInfo
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 WorkerLoadInfo
impl RefUnwindSafe for WorkerLoadInfo
impl Send for WorkerLoadInfo
impl Sync for WorkerLoadInfo
impl Unpin for WorkerLoadInfo
impl UnwindSafe for WorkerLoadInfo
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