pub struct WorkerCapacity {
pub cpu_cores: f64,
pub memory_bytes: u64,
pub storage_bytes: u64,
pub gpu_count: u32,
pub network_bandwidth: u64,
}Expand description
Worker capacity (total resources).
Fields§
§cpu_cores: f64Total CPU cores
memory_bytes: u64Total memory (bytes)
storage_bytes: u64Total storage (bytes)
gpu_count: u32Number of GPUs
network_bandwidth: u64Network bandwidth (bytes/sec)
Trait Implementations§
Source§impl Clone for WorkerCapacity
impl Clone for WorkerCapacity
Source§fn clone(&self) -> WorkerCapacity
fn clone(&self) -> WorkerCapacity
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 WorkerCapacity
impl Debug for WorkerCapacity
Source§impl Default for WorkerCapacity
impl Default for WorkerCapacity
Source§impl<'de> Deserialize<'de> for WorkerCapacity
impl<'de> Deserialize<'de> for WorkerCapacity
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 WorkerCapacity
impl RefUnwindSafe for WorkerCapacity
impl Send for WorkerCapacity
impl Sync for WorkerCapacity
impl Unpin for WorkerCapacity
impl UnsafeUnpin for WorkerCapacity
impl UnwindSafe for WorkerCapacity
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